If I had to guess, it has a mature ecosystem, it is still actively developed, and it has already been "battle tested" by various companies. Angular is a "boring" choice, and some people prefer to stick with boring solutions than exciting, new solutions.
> To me it feels like Angular is slowly dying
See https://2022.stateofjs.com/en-US/libraries/front-end-framewo... and select "Usage". If you want to trust the results of this survey, Angular is the second most used front-end framework. Unfortuantely there are no statistics for 2023 yet.
These seem like two contradictory statements.
I use Angular at work and I love it. And the sentiment is similar among my peers.
Do you also work with other frameworks? And why do you prefer Angular?
How so?
I prefer Angular as I much prefer spending my time building rather than wading through open source bs finding what works, what plays nice together, what others are using. Version management is as simple as "ng update".
reactive forms
validation
dependency injection
animations
pipes and directives
i18n
material components
these all and more are built-in in angular
No, it’s not sarcasm, just install the listed dependencies and you are good to go.
For forms and validation you can use the mentioned react-hooks-forms. MUCH easier compared to reactive forms.
I never understood the benefit of angular dependency injection, because of its very limited singleton only approach.
React-i18next is just so much better than all the i18n solutions for angular. If you want to be able to switch the language on the fly, you anyway need something like transloco for angular.
Pipes are just functions for templates, no need with jsx. And directives can be replaced with composition. Much easier and powerful.
Angular material is really dated, look&feel is from 10 years ago, check out the current material guide, and compare it to angular material. And it’s just way too hard to customize it, and it doesn’t come with a lot of features. And technically it’s not a part of angular. There are a few good commercial angular UI libraries though.
Forget which solution is better, apparently there is a subset of users who choose Angular purely because they want features built in & not to go searching for additional dependencies.
Could you recommend one of these?
Check out this chart (click rankings in the top right): https://2022.stateofjs.com/en-US/libraries/front-end-framewo...
You'll notice when sorting by Retention that Angular is falling off hard, but by Usage and Awareness it's been steady for years at the top.
Retention: would use again / (would use again + would not use again)
Usage: (would use again + would not use again) / total
Awareness: (total - never heard) / total
By those metrics, the number of people wanting to keep using Angular has been falling for years. But they are forced to by some external control.
Exactly my experience. I often ask why angular was chosen for the task, and usually the answer is: because the architect put it on the slides, and because we hire angular developers.