Hacker News new | past | comments | ask | show | jobs | submit login

Important new features. But in my opinion too little, too late. To me it feels like Angular is slowly dying. No idea though, why so many companies still use it for new projects.



> No idea though, why so many companies still use it for new projects.

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.


But also the framework with the highest „used it > would not use it again“ votes :)


Usually Angular tends to be used in projects where the developers have no say in what tech stack gets used anyway, other than switching jobs.



> To me it feels like Angular is slowly dying. No idea though, why so many companies still use it for new projects.

These seem like two contradictory statements.

I use Angular at work and I love it. And the sentiment is similar among my peers.


It’s not really contradicting. I think Angular and it’s ecosystem is falling behind compared to their alternatives.

Do you also work with other frameworks? And why do you prefer Angular?


It seems the alternatives are trying to catch up to Angular. The entire react ecosystem's embrace of Next is proof that people want a framework and not "just a library" for a lot of their needs.

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".


People always say angular comes with „batteries included“, but honestly I don’t get it. If you take vite, vitest, react, react-router, react-hooks-forms, react-i18next and axios you have more or less all the angular features covered. You don’t have to „dig through bullshit“ to do that.


Unless sarcasm, your comment actually explains the part you don’t get quite well. If you pick React for a project, how do you know to pick the other 6 dependencies you listed?


Can’t reply anymore because of nesting:

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.


I don’t think you understand. For someone who isn’t familiar with the React ecosystem - how would they know to install any of your mentioned dependencies.

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.


There is a learning curve for every technology.


>good commercial angular UI libraries

Could you recommend one of these?


what about:

reactive forms

validation

dependency injection

animations

pipes and directives

i18n

material components

these all and more are built-in in angular


Material components are a separate repo. They are not built-in.


> I think Angular and it’s ecosystem is falling behind compared to their alternatives.

How so?


My experience with libraries built by the community. Libraries for react have much higher quality than angular libraries. I usually fix the hard bugs in our team, and therefore read a lot of library code on GitHub. Usually react libraries impress me and angular libraries are often rather underwhelming. Highly subjective opinion though.


I don't have much experience outside of Angular ecosystem, but I share this sentiment too - the framework might be good, but the community size and quality also matter a lot. A similar example would be Sublime Text vs VSCode - I use the former, but VSCode has so much more vibrant community and everything supports VSCode by default, unlike ST where you are lucky to get a half-working prototype.


The framework is so complex, that a lot of details are not documented at all. And you see library authors struggle with that complexity.


The rising tide lifts all boats. Except Angular.

https://npmtrends.com/@angular/core-vs-react


First of all, if you want to compare actual growth, you'll need a logarithmic scale. Second, if you add in alternatives like Vue.js, you'll realize React dwarfs both Angular and Vue.js, yet I don't see anyone on HN claiming "Vue is dying".


I agree. To answer your question it's really just companies sticking with what they know. Just like how a huge portion of the internet is still built on PHP.

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.


> 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.


Agreed. Stewardship of the angular ecosystem is lacking. Versioning across first-party @angular packages isn’t consistent. Some @angular packages are in permanent beta for unknown reasons. Anything besides the latest release is abandonware.


And a lot of community libraries don’t work for new releases. Often they seem to need an update to work with the current angular version. React usually doesn’t have that problem. And because of their much smaller focus they only have major releases every 18 months or so.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: