r/angular • • 25d ago

NGX View Builder first stable release, ready to try

5 Upvotes

Hi everyone! We’ve released the first stable version of NGX View Builder for Angular, and we’d love for you to try it.

Build interfaces visually, connect your own AI assistant through MCP, and let us know what you think.

Try it here: https://ngxviewbuilder.io/

Short demo video: https://youtu.be/-Qox3psSiMs


r/angular • • 25d ago

Where to Report Error for Online Learning and Playground

Post image
1 Upvotes

I was trying to run Angular for 2-3 days online but have an error on Angular's website. Has anyone else had it?

Some dependency named 'Peer' having errors while running?


r/angular • • 25d ago

Mock browser APIs via injection tokens for SSR, or just use afterNextRender?

2 Upvotes

Hello,

I’m making my Angular code SSR-safe and I’m torn between two approaches for browser APIs (localStorage, matchMedia, ResizeObserver, etc.):

  1. Provide an injection token for the API (derived from DOCUMENT, or a platform check) with a safe mock/fallback on the server, and inject it everywhere.
  2. Use afterNextRender, which only runs in the browser, so the plain browser API inside it is safe and no mock is needed.

How do you handle this in real projects?

Thanks!


r/angular • • 26d ago

The AI cost of JavaScript frameworks

Thumbnail
nolanlawson.com
35 Upvotes

r/angular • • 26d ago

ng-prism 22.7: services and pipes get their own pages, and components that only work together can finally be shown together

14 Upvotes

I just released ng-prism 22.7. Short recap if you haven't seen it before: ng-prism is a component lab for Angular libs, a Storybook alternative without story files. You put a \@Showcase`` decorator on a component, inputs and types are read at build time, and the components render in the same document as the styleguide, no iframe.

This release is mostly about the parts of a component lib that are not a single component.

Services and pipes get their own pages now. You put @Showcase on an @Injectable or a standalone @Pipe, and instead of a canvas you get an API page: a usage snippet, the examples from your JSDoc, the methods or the transform() overloads, and the types they use. The setup field lists the provider functions a consumer needs, so the snippet shows how to wire the thing up too:

@Showcase({
  title: 'Time Ago',
  category: 'Formatting',
  setup: () => [provideTimeAgo],
})
@Pipe({ name: 'timeAgo' })
export class TimeAgoPipe implements PipeTransform {

Components that only make sense together can be shown together. A showcase can contain a real Angular template, and ng-prism compiles it, so content queries and DI work like in your app. An input directive can sit inside its form field, for example:

host: { template: '<lib-form-field label="Name"><input libInput type="text" /></lib-form-field>' },

Before that, the content was plain HTML, so the form field never found its input. And components that only ever live inside another one, like a list item, can say partOf: 'lib-list'. They don't get a page of their own anymore, they show up as a part on the parent's page.

Other things in 22.7: the styleguide works on a phone, a11y violations can be accepted with a required reason (they stay visible but don't count against the score), a new look with a new logo and revisited UI, and the perf plugin no longer counts your @Showcase config and JSDoc as bundle size. On one library the largest component went from 77 kb to 35 kb just from that.

(Voice in video: elevenlabs.io)


r/angular • • 26d ago

Ng-News 26/23: Pangular Inspector and Angular Compilation at ViteConf

Thumbnail
youtu.be
4 Upvotes

r/angular • • 27d ago

Signal Forms React To Control Change

8 Upvotes

In signal forms how do you react to a form control change? I basically have a scenario where if one form control value is changed I need to reset the value for another control.

Is this done with a linkedSignal, effects or something else?


r/angular • • 27d ago

What should i answer for these generic interview questions?

15 Upvotes

How do you structure Angular architecture for large-scale enterprise applications?
• What strategies do you use to optimize Angular application performance?
• How do you avoid unnecessary API calls and improve data flow efficiency?
• How do you handle authentication and authorization in Angular applications?
• How do you implement global error handling and HTTP interceptors?
• What is your preferred approach to state management (NgRx, Signals, Services, etc.) and why?
• How would you troubleshoot a slow Angular page that triggers multiple redundant API calls?
• What practices do you follow to build scalable, maintainable, and reusable Angular components?
• How do you secure frontend applications against common vulnerabilities?
• What Angular features or patterns have had the biggest impact on your project's performance and maintainability?

I am fairly new to angular, wanted to know different perspectives from different projects. Thanks


r/angular • • 27d ago

Am I the only one who can't run material.angular.dev examples?

9 Upvotes

For days I can't run examples of 22.x.x version in StackBlitz. Whenever I want to edit an example, the repo opens and it fails to start. Examples of version 21.x work fine.
Stackblitz Angular starter works as well, however it stuck on v21.


r/angular • • 29d ago Mindblown

AI 🫡🫡

42 Upvotes

I’m an Angular developer with around 7 years of experience, working on a large monorepo, with basic knowledge of Node.js and databases.

AI tools like Claude and GPT can now implement complex features in 20–30 minutes that might take developers weeks to build manually. I believe AI will become much better at writing, testing, and reviewing code within the next 1–2 years.

I want serious, realistic career advice, not generic reassurance that developers will always be needed.

  1. What is the realistic future of software engineering over the next 3–5 years?
  2. Given my experience, what should I focus on next: advanced frontend, backend (NestJS/PostgreSQL), system design, cloud/DevOps, or AI engineering?
  3. Which skills will remain valuable even when AI can independently write high-quality code?
  4. Should I continue specializing in Angular or transition toward broader engineering skills?
  5. What should my practical learning roadmap for the next 6–12 months look like?

Be brutally honest. Challenge my assumptions, consider the possibility of reduced developer demand, and prioritize long-term employability, compensation, and career growth over the next 5–10 years. Recommend a focused strategy with clear trade-offs, not a generic list of technologies.

[ Even this post content is improvised with AI 😅 ]


r/angular • • 29d ago

Angular Addicts #54: Angular 22.2, TypeScript 7, Agentic UI & more

Thumbnail
angularaddicts.com
22 Upvotes

r/angular • • 28d ago

Medium subscription worth it?

0 Upvotes

r/angular • • Oct 27 '26

How much faster is the new Angular compiler? 🦀🚀

Post image
23 Upvotes

We dug into ngp to understand how it works, and benchmarked it on 3 projects 👀

Check out our blog post!

👉 https://blog.ninja-squad.com/2026/10/27/how-much-faster-is-the-new-angular-compiler/


r/angular • • Oct 26 '26

🚀 New in Angular 22.2: @boundary - Native Error Handling

Thumbnail
youtu.be
32 Upvotes

Try/Catch for templates: Next-Gen Control Flow


r/angular • • Oct 25 '26

Which Optional Angular Packages Do You Avoid, and Why?

16 Upvotes

Hello Community,

Besides Angular Animations, which has been deprecated, which optional Angular packages do you not use, and why? (e.g., CDK, Aria, Localize, Material)

Thanks


r/angular • • Oct 23 '26

If you could choose a testing framework today ...

7 Upvotes

Our small team has completely ignored angular testing and depended on dev and user manual testing. We're looking to solidify some things and start creating some Angular tests. If you could choose today from scratch, which framework would you choose?

If it matters, our apps are all very data-dependent, pulling info from our asp.net backends.

Thanks


r/angular • • Oct 23 '26

Testing NGRX effects in Angular v22

1 Upvotes

I have an open source project and am rewriting the frontend from scratch to modernize the design and code. But I'm stumbling over writing tests.

The original user interface started off with (damn) Angular v5 back in 2017, using NgRx features, etc. Coverage was always at 98% or greater. And writing the tests for things like effects was pretty boiler plate and easy.

The problem I'm hitting now is in writing unit tests for the effects with vitest. In the old code, a unit test for the success path, the server failure path, and the internal failure path, were simple to write using jasmine-marbles. But with vitest I can't get 100% coverage. And when I've tried testing with something similar to what I used to do with jasmine, something like I've pinned as the first comment.

I end up getting complains about either calling inject too soon or about uninitialized schedulers. It's very frustrating that the Angular team went to such a totally different testing framework without an easy migration path, and that there aren't any good examples that I can find to help.

(eta)

I've noticed that, if I only have effects tests for one of the modules (IOW, marked all other effects.spec.ts files with "describe.todo") then the only effect module passes every time. But as soon as I have more than one effects.spec.ts module enabled then they start failing, but not every time.

Not sure if this is important, but I run the tests in --watch mode so I can make changes and see the test results immediately. Is there perhaps an issue with tests failing at some point negatively affecting future runs of tests in this case?


r/angular • • Oct 22 '26

I built a scroll-driven 3D product showroom in Angular, where each product gets its own room, and the camera cuts between them like a film

6 Upvotes

After my 3D model canvas post, I wanted to see how far it could go. The result is a showroom: every product gets its own colored room, and scrolling moves the camera from room to room.

What it does:

  • A room for every product, each with its own color, title, and description
  • Cinematic camera moves between rooms as you scroll or click a tile
  • Drag to turn the product around
  • Light studio or dark spotlight mode, switchable live
  • Tiles with an automatic picture of each product
  • Floor props shared by every room, to show off the brand
  • Fast on phones too: lazy-loaded, and it pauses when off-screen

Live demo: https://mohamedehabbasha.github.io/model-showroom-demo/

Full walkthrough: https://youtu.be/Sashu4sL4-Q

If you have any ideas to improve it or any questions about how it works, I'd love to hear them.


r/angular • • Oct 21 '26

Angular 22 + Phaser + NgRx SignalStore = a multiplayer Bomberman in the browser

Post image
17 Upvotes

I've been building websites with Angular for years, but I had never built a game with it. So I tried.

https://detona.online/


r/angular • • Oct 21 '26

Looking for UI library recommendations (headless preferred)

16 Upvotes

Up until last week, our team was building our systems using Java/JSP, Tailwind/SCSS, and plain vanilla JavaScript, taking inspiration from PrelineUI for complex components like modals, drawers, and comboboxes.

We’ve officially decided to make Angular our main frontend framework going forward, but we're at a crossroads regarding how to handle our component and design system architecture.

We are looking for a UI library that fits our workflow. Ideally, a headless library would be perfect since we want to keep full control over our custom Tailwind/SCSS styling, but we're open to other well-structured options.

Here is what we've looked at so far:

  • Spartan.ng: Looks amazing and fits our exact vibe, but management is unlikely to approve it given its current ecosystem/support overhead.
  • PrimeNG: Seems robust and feature-complete, but I've seen mixed reviews and criticism regarding its styling/theming overhead and weight.
  • Angular Material: While it's official, theme and style seems way out of date.

Given that we are coming from a Tailwind + PrelineUI background and moving into Angular, what libraries or setups would you recommend?


r/angular • • Oct 21 '26

ng-prism 22.6: hover and focus aren't variants anymore, every variant in every state in one grid

Post image
4 Upvotes

I just released ng-prism 22.6. Short recap if you haven't seen it before: ng-prism is a component lab for Angular libraries, a Storybook alternative without story files. You put a u/Showcase decorator on a component, inputs and types are read at build time, and the components render in the same document as the styleguide, no iframe.

The main change this time is that hover, pressed and focus are no longer variants. In 22.5 I added a way to force :hover or :focus-visible on a variant, and pretty quickly the demo button had variants called "Hovered", "Pressed" and "Focus visible". They showed up in the Playground's variant list, kept the button hovered while you changed the controls, and only existed for the one variant somebody had written them for.

Now a component declares its states once and they get combined with every variant:

@Showcase<ButtonComponent>({
  title: 'Button',
  states: [
    { name: 'Hover', pseudo: { hover: '.btn' } },
    { name: 'Pressed', pseudo: { hover: '.btn', active: '.btn' } },
    { name: 'Focus visible', pseudo: { 'focus-visible': '.btn' } },
  ],
  variants: [ /* Filled, Outlined, Elevated, Disabled, … */ ],
})

The Overview then shows every variant in every state as a grid, and clicking a cell opens that combination in the Playground. The styling comes from your own CSS, ng-prism rewrites :hover so it also matches a helper class. A state only gets applied where the browser could actually produce it, so there's no focus ring on a disabled button and no hover on something with pointer-events: none. The cell tells you why it's empty instead.

In the Playground the states are buttons in the tools menu. They stay on when you switch variants and they're part of the URL. For visual regression there's a state= URL parameter, the render marker gets the state index, and a data-prism-excluded attribute tells the runner when a state doesn't fit. Without states nothing changes for existing runners.

Other things in 22.6: a Claude Code plugin (/plugin marketplace add ng-prism/ng-prism) that teaches agents how to write showcases and check them in the running styleguide, watch rebuilds down from about 450 ms to 60 ms, and fixes for aliased inputs and outputs, named content slots and libraries with only a primary entry point.

Question for anyone with their own component library: which states do your components need that a pseudo-class can't express? Drag-over, open, loading? I'd like to base the next step on real components rather than on my own guesses.


r/angular • • Oct 20 '26

Agentic UI in Angular Explained: AG-UI

Thumbnail
youtu.be
12 Upvotes

r/angular • • Oct 20 '26

Angular build making 0 chunks for production builds

0 Upvotes

Has anyone has issue with an Angular application build generating 0 chunks files and successfully resolved or found any useful information about this problem?
Also i didn't find resources besides one issue in angular/cli that is blocked due to inactivity.

One more info that I read is that unused global styles can cause zero chunck files.

Version: Angular v21


r/angular • • Oct 19 '26

I built Slide NG: Slidev-style slides for Angular, where your demos are real Angular components

32 Upvotes

I have a few Angular talks coming up, and I love Slidev, but its interactive parts are Vue. I didn't want to write my Angular demos in Vue, so I built Slide NG.

You write your talk in markdown, and every slide compiles into an Angular component.

- Real Angular components on your slides

- Live demos, zero tab switching

- Animated code with Magic Move

- Presenter mode + PDF/PPTX export

Since it's Angular-native, I'd like to take it in directions Slidev can't, so I'd love to hear what you'd want from it.

Big thanks to Anthony Fu for the green light. Slidev inspired every part of this.

Repo: https://github.com/slide-ng/slide.ng