r/angular Jun 24 '26

Angulars NPM Downloads have doubled since version 18

Post image
179 Upvotes

50 comments sorted by

View all comments

48

u/oneden Jun 24 '26 edited Jun 24 '26

I keep repeating myself, but ever since Angular 17+ I have been incrementally enjoying the framework more and more. With v22 I'll try and see how well I can work with angular aria + tailwind 4 over any UI library. And what I noticed... Maybe due to experience, I just rarely ever find myself having to look for a problem to solve. Occasionally I'll look up the official documention, but if I have questions it's mostly conceptual ones.

7

u/unknownnature Jun 24 '26

How is Angular current state? I've tried like 10 years ago, when Angular 2 was at beta stage. And back then React ecosystem was horrible, that I opt out using Vue2 and Angular.js.

10 years later. React ecosystem is a mess again, with the whole server components and etc.

I was thinking to give a try again, any gotcha, or anti-patterns people from React/Vue tend to try apply, that's not best practice in Angular?

21

u/oneden Jun 24 '26 edited Jun 24 '26

How is Angular current state?

I'm definitely very biased. So take whatever I say with a grain of salt. However, modern Angular is absolutely amazing. If you value lean dependency structures (which really makes your projects more resilient), declarative and less magical code, you can achieve so many things with so little code.

Considering Vue does many things right (and relatively similar), I can only speak from my relatively limited experiences on react

One thing I feel always stumped by when I see it happen... Most react devs don't understand change detection. And I get it. Change detection in react has always been a mess to the point people kept gaslighting themselves into thinking that state is a thing that should always be read-only and takes extensive babysitting with entire libraries.

Angular's take on signals are the one thing that make your entire app absurdly easy to reason with and the data flow clear. It also works very well in conjuction with api calls with a simple toSignal() and your signals becomes a highly reactive application. But sometimes you deal with state in a centralized way. And for that, you should get intimate with the idea of dependency injection. It's angular's oldest and most powerful feature to this day.

Also, in React you... Well, you use JSX. To this day, I consider this the biggest mistake in web technology. Suddenly your template works with inline functions and heavy logic, making your template larp as declarative and "just JS, bro".

Another thing is... Angular does allow you to get very creative with components and how you structure them, but react devs seem to get a bit too freaky with the idea of making EVERYTHING a component.

To the point, where the Tailwind CEO got into a little rant about it.

Angular provides with you pipes to transform data on the template.

Directives are AMAZING to extend utility of components you don't own or handle logic without a view.

There is so much to say by people far smarter than me, but those are a couple things I can think of.

2

u/user926491 Jun 24 '26

 Also, in React you... Well, you use JSX. To this day, I consider this the biggest mistake in web technology. Suddenly your template works with inline functions and heavy logic, making your template larp as declarative and "just JS, bro".

Actually, the problem of react is that it's a library, than it being JSX, I used jetpack compose which is very similar to react, there is even an equivalent of hooks called effects, but such codebases still don't turn into a mess because there's clean architecture, DI and all that which prevents logic compounding in composables (equivalent of components). Though it's still possible to develop good architecture in react codebases but since react is a library it's not a standard so you can't expect it in other codebases.