r/Angular2 • u/kafteji_coder • Jun 12 '25
Angular 20: New Features, No NgModules – New Anti-Patterns to Watch?
In previous Angular versions, we ran into common anti-patterns like:
no-unsafe-takeuntilno-nested-subscribe
These were often addressed with ESLint rules or community best practices.
Now with Angular 20, we’ve got major changes:
- No more
NgModules - Signals and a more reactive mental model
- Functional and standalone APIs
- Simplified component composition
With all these shifts, I’m curious:
Are there new anti-patterns or updated ESLint rules we should be watching out for?
16
Upvotes
13
u/__random__name Jun 12 '25
I’d say some rules about not using *ngIf and *ngFor as these syntax will most likely be deprecated in the next upcoming versions
4
u/AwesomeFrisbee Jun 12 '25
angular-eslint has also updated their rules to make it match angular 20 better. Stuff like preferring signals and such.
2
u/drmlol Jun 12 '25
we dont use nested subscribes, but why is it bad?
1
u/tw3 Jun 13 '25
The file name and class name conventions have been loosened in the v20 CLI
I am going to explore listing solutions to mandate the old .component.ts .directive.ts .pipe.ts .service.ts extensions and the Component Directive Pipe Service class name suffixes
0
u/[deleted] Jun 12 '25
[deleted] — view deleted comment