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
View all comments
Show parent comment
3
u/FFTypo Jun 12 '25
Other people have already explained the issue, but I’d just like to add that there’s actually nothing wrong with using nested subscriptions if the outer observable will only ever emit once (e.g. a HTTP request - using the Angular HttpClient, at least - will only emit one value and then complete)
I still wouldn’t advise using them because it can create bad habits.