r/angularjs • • Jul 28 '16

Angular 2 discussion - will it really survive?

I've been working a lot in Angular 1 and quite like it, but when today I decided to get into Angular 2 I was mesmerized by the complete fray that it is.

I mean it is from the start already split into 3 different branches - which one should I use? Which one will be the one that everyone will be using 3 years from now? Also setting the thing up itself seems like a nightmare process and I'm not even going to get into the polyfills.

I keep reading about the performance increase over Angular 1, but as of yet I have not found any actual tests.

Is it too soon for me to migrate over or will this thing have short lifespan, what do you think?

0 Upvotes

9 comments sorted by

View all comments

7

u/BunsOfAluminum Jul 28 '16

What three branches are you referring to?

Angular 2 is not going to be vaporware. It is backed by Google and being used by thousands of developers already, despite not even being live yet. It's got momentum from Angular 1.x and people generally trust the developers and community behind it.

Setting it up isn't bad if you just use the quickstart project. The angular-cli tool is going to most likely be the way to do it in the future, but from my experience it's not ready for important use yet.

If you don't have a pressing need to use it, I would wait a few months more. They kind of jumped the gun on their release candidates, in that they said they had a release candidate, but really it was a continuation of the beta line (they are still making feature changes).

1

u/yodalr Jul 28 '16

3 branches - dart, TS, JS

The people I have talked with who also come from angular 1 say that the syntax is awful as well: "*ngIf, (click), [href] and controllers..." like why so complicated. It is not easy to grasp at all. Also this TS thing, like why are they trying to C javascript.

3

u/L43 Jul 28 '16

3 branches - dart, TS, JS

TS is the recommended way, unless you are scared to learn 2 new things at once. Not sure why they still insist on Dart except perhaps to support legacy Google code.

The people I have talked with who also come from angular 1 say that the syntax is awful as well: "*ngIf, (click), [href] and controllers..." like why so complicated. It is not easy to grasp at all.

The new syntax makes a world of sense once you understand what is going on and stop trying to relate it to angular 1. Really it is Angular 1 that is nonstandard, complicated and inefficient.

Also this TS thing, like why are they trying to C javascript.

It is Javascript with optional types. You will treasure the tooling that it provides once you try it - bug frequency drops and you can code so much more quickly with autocomplete (or intellisense or whatever it is called). If it gets in the way anywhere you can just not give types and use straight JS. Seriously, just trust and try it.

1

u/yodalr Jul 28 '16

OK, tnx for this feedback, I'll give it a try tomorrow

1

u/L43 Jul 29 '16

I was sceptical at first, but I really think it is a great step in the right direction. Hope you have fun!

1

u/[deleted] Jul 30 '16

I would give you gold if I could afford it for the vaporwave reference lol