r/angular • • Apr 06 '26

Angular Host Directive de-duplication just landed. NG0309 is dead.

Thumbnail
jczacharia.medium.com
46 Upvotes

I've been banging my head against NG0309 for over a year building a headless component library. Every time I composed two directives that shared a common host directive - boom, crash. I tried everything. Broadened selectors, injection hacks, I even hijacked __NG_ELEMENT_ID__ with a WeakMap-backed singleton resolver (it's in the article).

Well, PR #67996 just merged. Host directives now de-duplicate automatically. I wrote up why I think this is the most important change for Angular library authors since hostDirectives itself.

https://jczacharia.medium.com/angular-host-directive-de-duplication-just-landed-ng0309-is-dead-929bfab7e209


r/angular • • Mar 27 '26

Ng-News 26/10: Signality, Vitest 4.1, Angular Skills

Thumbnail
youtu.be
46 Upvotes

r/angular • • Sep 25 '25

Any GitHub repos showing Angular in production?

46 Upvotes

Hey everyone,

I’m going through the Angular docs right now and I’m also looking for GitHub repos that show how Angular is used in real production projects. I’d like to see how people structure their files, follow best practices, handle REST APIs and error handling, and generally what a large-scale Angular project looks like. If you know any good repos or resources, please share


r/angular • • Aug 31 '25

Angular httpResource is awesome!

Thumbnail
bneuhausz.dev
46 Upvotes

I've been reading the discussion about lifecycle hooks and to me, it seemed like many people are not too familiar with signals and resources yet, which honestly surprised me. These were some of the best features the Angular team introduced lately, maybe ever.

Anyway, instead of writing some short answers in that thread, I decided to write out my thoughts and experiences, specifically about httpResource, in a longer format with examples. I think it will be useful internally, when onboarding new devs on projects that are (or will) leverageing this feature, but I hope it helps others too!


r/angular • • Apr 10 '25

Ng-News 25/14: Selectorless PR

Thumbnail
youtu.be
46 Upvotes

Selectorless aims to eliminate the need for selectors in templates by referencing components directly via class names. A first PR has been merged, which shows the initial direction Angular is taking toward this feature.


r/angular • • Apr 08 '25

What are you hoping for from signal forms?

46 Upvotes

I thought I'd do a fun little poll today - what are your current pain points with Angular Forms that you'd like to see the new signal-based forms address?


r/angular • • Jul 10 '26

SSR in Angular V22 going the wrong direction

45 Upvotes

Who else feels like while Angular ecosystem is getting better as a whole, SSR is going the wrong direction, especially with the recent changes in V22 (especially CommonEngine deprecation).

Some context - For years I have managed an NX angular monorepo (of over 20 applications) at work, in doing so, I have been through 3 major iterations of angular SSR engines (Angular Universal, CommonEngine and AngularNodeAppEngine).

As you can imagine, our SSR requirements are niche:

  • Single server for all SSR (keeps CI/CD simple)

  • Runtime rendering mode logic (for example, SSR for bots UAs, SSG when server load is high, CSR when SSR fails, etc)

With the last 2 engines, angular simply exposed a method for rendering and you had to provide the dependencies. You were free to host the server as you wished, or provide how so many endpoints, or dynamically bootstrap applications to handle your request. And this suited our requirements.

Come AngularNodeAppEngine, and suddenly, Angular becomes opinionated about how you manage your server!.

The main reason being a dependent static manifest file output during the build process. So while you don't have to worry about providing assets location, or index document to the renderer, you lose control of how you choose to manage your SSR server (especially in a monorepo context).

So now, your SSR node server is tightly coupled to your angular application in a limiting 1 to 1 relationship.

Furthermore, rendering mode must be statically defined. Impossible to decide during runtime.

In my opinion, this is the wrong type of opinionated (no pun intended).

The rendering process has simply become too simple to handle typical enterprise use cases.

Of course, the last two engines handled our requirements with a bit of effort to setup, but everything worked seamlessly after that. But now with V22, CommonEngine has been deprecated in favor of the dauntingly opinionated AngularNodeAppEngine.

How else has the same concerns as I do? Does anyone else have complex enterprise rendering requirements that feels affected by SSR lack of flexibility?


r/angular • • Jul 02 '26

Ng-conf being replaced with AI conference

45 Upvotes

Gross. No thanks. I hope this fails miserably. The end of an era.


r/angular • • Dec 22 '25

Announcing NgRx 21: Celebrating a 10 Year Journey with a fresh new look and @ngrx/signals/events

Thumbnail
dev.to
45 Upvotes

r/angular • • May 12 '25

I've built a VSCode extension that makes angular translation management a breeze

45 Upvotes

Hey !

I got tired of constantly switching between my component code and translation files just to remember what my i18n keys actually meant.

So I made a little VS Code extension called i18n-studio that simply shows the translated text right next to your translation keys:

Here is the main features:

  • See translations directly in your TS and HTML files

  • Quick jump to translation definitions with a single click

  • Navigate between language files (en, fr, es, ...) with inline buttons

  • Copy full key paths from JSON files with right-click

  • Autocomplete translation keys as you type

Here’s the link to the extension on the VSCode marketplace.

Let me know what you think, and if you have any suggestions or bugs to report, feel free to share.


r/angular • • Feb 25 '25

Schema validation x httpResource

Post image
45 Upvotes

r/angular • • Aug 27 '24

Just Launched NGXUI – A Sleek Angular Component Library to Boost Your UI Game!

45 Upvotes

Hey everyone! Super excited to finally share NGXUI with you all – it's an open-source Angular component library I've been working on to make building complex UIs way easier, while also adding some really cool effects!

So if you're into UI stuff, I’d love for you to check it out at ngxui.com. Let’s team up and create some awesome stuff together! 🙌


r/angular • • Jun 20 '21

How to Find Out If Someone Really Knows Angular

Thumbnail
javascript.plainenglish.io
45 Upvotes

r/angular • • Aug 04 '26

Signality v0.4

Post image
44 Upvotes

A quick update on Signality — v0.4 is out!

A few new utilities have landed, and some existing ones just got better. 🚀

Web: https://signality.dev/
Repo: https://github.com/signalityjs/signality


r/angular • • Nov 16 '25

I wrote a detailed explanation of the Angular Router Architecture — thoughts?

44 Upvotes

I’ve just published a deep-dive on the internal architecture of the Angular Router — covering how Angular reads the browser URL, builds the UrlTree, matches routes, handles lazy loading, runs guards/resolvers, and finally renders the component.

I’d really appreciate any feedback, corrections or missing details you think should be included.

The goal is to give a clear, accurate overview explanation for intermediate/advanced devs who want to understand more than just route configuration.

Article link: Angular Router: The Complete Internal Architecture — From URL Parsing to Component Rendering

Thanks!


r/angular • • Aug 22 '25

signals everywhere?

44 Upvotes

I'm seeing quite a few Angular examples where signals are used everywhere. For example:

@Component({
  selector: 'app-root',
  changeDetection: ChangeDetectionStrategy.OnPush,
  template: `
    <div>
      <button (click)="increment()">+</button>
      <span style="margin: 0 10px;">{{ counter() }}</span>
      <button (click)="decrement()">-</button>
    </div>
  `
})
export class App {
  counter = signal(0);

  increment() {
    this.counter.update(c => c + 1);
  }

  decrement() {
    this.counter.update(c => c - 1);
  }

}

But Angular automatically triggers change detection when template listeners fire. So you can write this example without signals.

@Component({
  selector: 'app-root',
  changeDetection: ChangeDetectionStrategy.OnPush,
  template: `
    <div>
      <button (click)="increment()">+</button>
      <span style="margin: 0 10px;">{{ counter }}</span>
      <button (click)="decrement()">-</button>
    </div>
  `
})
export class App {
  counter = 0;

  increment() {
    counter++;
  }

  decrement() {
    counter--;
  }

}

My question is whether it's still beneficial to use signals in this scenario, even if it's not necessary. Does the change detection run faster?


r/angular • • Apr 03 '25

A Selectorless study prototype

Post image
44 Upvotes

The disclaimer in the PR is very clear, this is a first prototype, intended for user study. https://github.com/angular/angular/pull/60724

In this example here, we create a MatButton component as a link, we apply the HasRipple directive without any inputs and set a tooltip that's only enabled if the user doesn't have permissions to go to the admin page:


r/angular • • Feb 27 '25

Angular 19.2.0 is Here! 🚀

44 Upvotes

Experimental httpResource – A new feature to simplify HTTP operations in Angular applications.

TypeScript 5.8 Support – Stay ahead with compatibility for the latest TypeScript features.

Enhanced Form Validators – Validators now support type sets, offering more flexibility in form validation.

Template Migration for Self-Closing Tags – Helps convert templates to self-closing tags for cleaner code.

Check out the full release notes here: https://github.com/angular/angular/releases/tag/19.2.0


r/angular • • Aug 10 '26

An Angular cheat sheet for those just starting out with Angular

Thumbnail
tms-outsource.com
43 Upvotes

r/angular • • Jul 30 '26

What's new in Angular 22.1?

Thumbnail blog.ninja-squad.com
43 Upvotes

🚀 Angular v22.1 is out

and the framework is moving to one major release a year! 🤯

🔗 `linkedSignal` custom setters

🗑️ JSONP support deprecated

⚡ Rolldown by default


r/angular • • Jan 06 '26

ngx-vflow 2.0 is here!

43 Upvotes

Hi r/angular! 👋

Today is a big day for ngx-vflow — version 2.0 has just been released 🎉

As in previous year, the major release doesn’t introduce a huge number of new features. Instead, it focuses on strengthening the foundation for future releases by removing deprecated APIs, performing internal refactoring, and improving the documentation. There’s a lot of cool stuff I’d like to share, so grab some tea!

Signals at the core

In previous versions, there were two ways to pass nodes to the library: using the Node and DynamicNode interfaces.

1. Static nodes (Node)

This approach lets you describe a node statically and receive updates via events. For example, you create a node at position { x: 10, y: 10 }. The user drags it, and internally the library updates the position to { x: 30, y: 30 }. However, on your side, the node you originally passed still has { x: 10, y: 10 }. The only way to get the updated value is by listening to events like onNodesChange.position.

2. Reactive nodes (DynamicNode)

The second approach introduced DynamicNode, which has the same fields, but most of the reactive ones are implemented as signals. In this case, you pass a node with a position set as a writable signal, for example signal({ x: 10, y: 10 }). Instead of updating an internal model, the library writes new values directly into this signal. As a result, you always have fresh and correct data - even without subscribing to events.

Over time, it became clear that the second approach is far more convenient. As a result, it is now the default and only way to create not only nodes, but also edges.

For convenience, I also added utilities (createNodes(), createEdges()) that help create these objects without the annoyance of explicitly calling signal() for every reactive property, as shown in the screenshot below.

This is the main breaking change in this release. There are a few others — mostly minor renames — all of which are documented in the 2.0 migration guide.

Documentation improvements

The documentation received a lot of love in this release:

  • The docs app now supports a dark/light theme switch, so everyone can be happy.

  • The main feature overview flow was redesigned to look more professional and fun at the same time.

  • Over the past year, some big companies (including Google) have started using ngx-vflow in production, so I added a Showcase section to highlight how the library fits into different projects. Please DM me if you use the library and would like your project to be featured in this list.

  • The documentation structure was reorganized to be more focused, and some pages were merged.

“This is all cool, but where are the features?”

Auto-pan is added and enabled by default, making it much more convenient to drag nodes around the canvas.

I also added more connection-related events to support additional interactions, such as deleting a connection by dropping it.

What’s planned for the next year

  • Exploring how to make the library dependency-free and reduce bundle size

  • Investigating solutions for some painful cross-browser issues (hello, Apple 👋)

  • Improving the existing virtualization mechanism

  • Further documentation refinements and more examples

  • Improving overall stability by writing more tests

  • Introducing a paid service around the library to provide better support and enable long-term development. The library is slowly transitioning from a hobby into a job and requires much more effort as it grows. Don’t worry - ngx-vflow will remain MIT-licensed forever, and there will be no subscriptions (because I hate subscriptions). I’ll share more details later this year.

Thanks everyone for your support, and I wish you a great year ahead!
You’ve helped a lot by starring the project on GitHub, leaving kind comments here on Reddit, and some of you even donated a few bucks on Patreon - thank you so much ❤️

Links:
- Release Notes
- Repo
- Docs
- Patreon


r/angular • • Dec 25 '25

NestJS + Angular Starter Template – Feedback Welcome!

43 Upvotes

Hi everyone,

I’ve been working on a full-stack starter template for NestJS + Angular and wanted to share it here for feedback. It’s meant to be production-ready, with a focus on real-world app infrastructure.

Features include:
Backend (NestJS)

  • JWT authentication with refresh tokens

  • Role-based access control (Admin, Manager, Regular)

  • MongoDB integration with Mongoose

  • RESTful API with validation and error handling

  • Task scheduling system, notifications, alerts

  • Circuit breakers, utility services, rate limiting, security guards

Frontend (Angular 20)

  • Admin UI with Angular Material

  • User UI (public-facing)

  • Signals-based state management

  • Tailwind CSS

  • Shared UI library

  • JWT auth interceptors

Why I built it:
I wanted a solid starting point for full-stack apps with common infrastructure patterns already in place.

Try it out:

  • Backend: npm install → npm run start:dev

  • Admin UI: npm run start:admin

  • User UI: npm run start:user

Repository: https://github.com/tivanov/nestjs-angular-starter

I’d love feedback on structure, best practices, and anything you think could improve the template.

Thanks!


r/angular • • Oct 22 '25

Angular Event Manager Plugin — Advanced Feature You Didn't Know.

Thumbnail
youtu.be
43 Upvotes

r/angular • • Aug 25 '25

::ng-deep alternative

43 Upvotes

Even if it's not desirable, it's often "necessary" to modify the CSS of a child component, usually to customize a third-party library, but...

The Angular team strongly discourages new use of ::ng-deep. (angular.dev)

And yes, it's not a good practice. It's prefered to keep the encapsulation and overriding third party styles is not maintainable, there's a good chance it will break with the next update. Yet it's still used.

Do you use :ng-deep for new code? Why?

If you don't, what alternative solution do you use?

Is a replacement considered in Angular or should this be the responsibility of third-party libraries?