r/javascript • • Sep 15 '16

Angular 2 Final Released

http://angularjs.blogspot.com/2016/09/angular2-final.html
358 Upvotes

190 comments sorted by

View all comments

Show parent comments

18

u/pegbiter Sep 15 '16

React is beautiful.. in principle, but to actually do useful things with it you need so many additional libraries that the slickness is lost. You want ajax? You need an additional library. You want promises? You need an additional library. You want routing? You need an additional library. And god forbid something goes wrong and you have to trace through the documentation of each of these libraries and how they work with react proper.

In theory, sure I could pull out react and replace it with some other view engine, but in reality I'd be pulling out react and all the other react-based libraries and replacing/adjusting all of those.

Angular 1.x sure isn't perfect, but at least all the most basic tools you need for a web application are right there and I never have to worry about how $http works with $scope or whether $q is a compatible version.

8

u/theonlylawislove Sep 15 '16

in principle, but to actually do useful things with it you need so many additional

This is actually a benefit. You are looking for an opinionated Swiss army knife. With React, you do things what makes sense to you, not what the framework forces you to do.

6

u/g0liadkin Sep 15 '16 edited Sep 15 '16

Please define what you mean with "forces".

Angular does not recommend many vanilla js aspects, but does not "force" you not to apply them, it's still javascript and you're able to do whatever you want to do within the language's bounds, even if that means (for example) accessing and handling DOM inside a controller.

3

u/theonlylawislove Sep 15 '16

Let's just say it's an opinionated ecosystem.

0

u/[deleted] Sep 15 '16

[deleted]

1

u/pegbiter Sep 15 '16

Well, he's right in a way because technically you can certainly mix Angular with vanilla Javascript/jQuery, but you have to set up a whole host of watchers and scope updates manually to notify Angular of any changes that happen from outside of Angular.

I've had to do that when I integrate SignalR into an Angular app, and it's kinda a nuisance every time. It works, but it's not really very elegant.