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

10

u/ataskitasovado Sep 15 '16

Now that version 1.x has got so much traction I think new projects will still consider 1.x over 2.0.

15

u/phpdevster Sep 15 '16

Especially since 1.x is so much simpler than 2.0 and you can still build enterprise-grade apps with it fairly easily.

As far as framework design goes, this is sort of a joke:

https://angular.io/docs/ts/latest/quickstart.html

Quickstart my ass...

9

u/mikejoro Sep 15 '16

2.0 was much more intuitive to me when I tried it 6 months ago. Now I don't see why someone would choose angular 2 over react, but I also don't see why someone would start a new application in Angular 1 either.

4

u/RuffRyder26 Sep 15 '16

I agree. As someone who never used 1.x in anger I found 2.x much more intuitive on those occasions I had to pore through some 1.x code. 2.x does have its oddities though.

1

u/pressbutton Sep 16 '16

would start a new application in Angular 1 either.

Not having to learn anything? Certainly why I chose it for adding functionality to a HTML only PoC

3

u/nschubach Sep 15 '16

If you wish to make an angular app from scratch, you must first invent the universe.

3

u/shif Sep 15 '16

if you think angular 1.x is simpler try out vue.js

2

u/phpdevster Sep 15 '16

I've used Vue quite a bit, but I've found that Angular has more feature out of the box (ability to define custom sync and async validators, and other misc things). While I prefer Vue's simplicity and API, it's just not as feature complete.

2

u/tayste5001 Sep 15 '16

Idk, I liked the quickstart. It's not great if you just want a really simple example of how to use it, but it does a great job of showing off how many different features angular2 supports and how easy it is to use them.

3

u/leeharris100 Sep 15 '16

As a big fan of Angular 2, Angular 1 is fucking complete garbage.

A large scale enterprise framework shouldn't be picked because it's "easy." Writing vanilla PHP is easy, but that doesn't mean I'll choose it for a high scale application.

Angular 1 has awful design and it is insanely slow. The only real reason it's popular is because it allows for much easier and dirtier code than other frameworks. This makes it insanely popular with beginners and people in developing countries who don't know any better.

2

u/DOG-ZILLA Sep 15 '16

Still trying it out but I totally agree. What a mess of a quickstart.

1

u/xtphty Sep 15 '16

Angular 2 focuses on improving the scale and maintenance of Angular applications, so it makes sense they have had to sacrifice some of the simplicity for a more rigid structure. React does the same thing, but with far more abstract means.

1

u/[deleted] Sep 15 '16

Here, I fixed that for you (Angular 2 quickstart without Angular 2): http://output.jsbin.com/wifufal

0

u/Mael5trom Sep 15 '16

Angular2 itself is actually pretty simple to understand. The build/setup process was a bit more convoluted than v1, but that is why Google built the CLI tool.

0

u/[deleted] Sep 15 '16

The "copy this into there" seems weird, why not include it in the/some CLI to do it automatically. Its not even that hard.

But yeah, i also struggled a while ago. Especially integrating typescript with my existing Gulp stuff was a mess (also had to include a custom existing plugin that was created for jquery but worked fine in angular1.

However my main issue with this is that everything has to start from scratch. Many modules need to be ported (and completely refactored as well) and you will run into many issues that aren't easily found in Google or whatever. Plus editors can't really understand everything. And so on.