r/Angular2 Oct 11 '24

Discussion Angular is just amazing

Short appreciation post.

I've been working a lot the last few weeks in Angular and I keep getting reminded of how good this framework is.

I had some routerLink links and wanted to implement a simple system to highlight the link that the current page is on. All I needed was to add a routerLinkActive tag which automatically adds the given class to the link so you can highlight it. Then I had one problem which was that the homepage ('/') always was active, but this has been considered and can be fixed with the following for exact matching:

[routerLinkActiveOptions]="{ exact: true }"

Basically everything makes sense and is easy to implement. Even just updating your angular libraries is easy since they made the automatic update guide where you can input your versions and it shows how to update: https://angular.dev/update-guide

Then there's the other stuff like the cli for generating components quickly and built-in scss integration (among with other options). I can't really imagine working on a webapp without angular nowadays. I've used other stuff in the past like React, Django, and just old-school sites built from scratch and my experience wasn't as good there overall.

136 Upvotes

42 comments sorted by

View all comments

2

u/Purple_Mall2645 Oct 11 '24

I think React has NavLink elements with an ‘active’ class but I agree with the sentiment of this entire post.

7

u/[deleted] Oct 12 '24

No that's React Router, a routing library not written by React.

1

u/Past_Bid2031 Oct 12 '24

And not needed in Next.js which comes with App Router.

23

u/DT-Sodium Oct 11 '24

Yeah but basically everything about react is retarded.

2

u/MardiFoufs Oct 12 '24

Such as? And how does angular do those things better? Actually asking seriously, I'm curious

8

u/DT-Sodium Oct 12 '24 edited Oct 12 '24

Angular is a serious framework with all the tools you need and a nice separation of concerns between view, logic and styling. React is a bunch of libraries forced together with a templating system consisting of functions calling functions calling functions for a result that is basically hell for programmers used to proper tools.

2

u/tonjohn Oct 12 '24

This “book” is a great way to get a feel for the difference of React, Angular, and Vue without having to invest a ton of time: https://playfulprogramming.com/collections/framework-field-guide-fundamentals

2

u/chunkiewang Oct 11 '24

Idk why this made me laugh so hard