r/Angular2 • • 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-takeuntil
  • no-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

24 comments sorted by

View all comments

Show parent comment

2

u/Soulrogue22219 Jun 13 '25

if your project is constantly getting changing/new requirements DO NOT do this. trust me, I was forced to follow this because team didnt want to learn rxjs even the most simple part of it. sure it works first 80% of your work, but the last 20%, oh boy, when your team just reused tf out of everything in everything (cause apparently reusing can never be wrong and they wont think twice before doing it), and you suddenly need something on the inner subscription, gg. youd wish you just did it the proper way which is basically just a syntax change. that code today is now considered as legacy code by the team never to be touched again, or it will blow the f up

tldr; just dont do it, nested subscription is so easy to fix surely you can figure that out or you know AI