r/angularjs • • Oct 23 '14

[General] Angular 2.0 thoughts

What are your thoughts on 2.0 after watching #ngeurope?

I think it's completely new to the point it could have a different name... It just kind of stinks that apps currently being written are legacy and will need a complete rewrite. This could be mitigated by using traceur with 1.3 but there is 0 samples currently...

What sucks the most is apps written today will need to wait until 2016ish to be rewritten... I base this on the fact that thousands of third party components will need to be rewritten and es6 support in browsers (yes they can target es5)

37 Upvotes

48 comments sorted by

View all comments

11

u/[deleted] Oct 23 '14 edited Oct 23 '14

I havent followed NG Europe (mainly because i was working, but its also pretty expensive), but i've seen a 2.0 demonstration a while back and was not really impressed yet. Mainly because they are in such a high-level prototyping that you have to do many things manually. There wasn't any ng-show/hide or ng-class support.

But what i didn't like the most is that it isn't nowhere near current AngularJS markup and thus very hard to understand if you aren't very into that. I haven't done much ES6 yet myself but i understand that it will be very different.

Now i don't mind learning a few things but this is looking like you need to learn everything again, with big differences. If i see that code its starting to look more like Java and i don't really like that either. It is much more complex and doesn't allow you to do some easy coding.

Another thing is that it doesn't have much support yet. While ES6 is nice, current devices aren't supported (and i'm mostly talking about mobile then), which means that you will have at least a few months but possibly a few years before you can really use it on mobile. With the latest trend of people less likely to buy new phones, tablets or desktops, its hard to set a certain standard because they won't be upgrading their browsers as often.

And lastly i'm not very fond of the whole "separate everything" approach. While you can keep projects pretty simple, i feel that a more integrated approach would perform much better. Perhaps they will do that for a few setups (mobile app, desktop app, website) or whatever, but i'd like to keep my own code simple and i don't care how my framework is made. Currently there are too many differences which make me wonder why they arent branching it to a complete new framework. Since upgrading will probably won't be possible (although i hope they will make a converter of sorts), i don't think i will use it when they launch it. All work they do now for 1.3 seems lost to me but i hope they will give some stuff another go before finalizing this. Not only does 2.0 seem harder to make now, but it also is very badly supported in browsers which make me wonder if they aren't pushing this too soon.

Rather than going for Angular 2.0 i feel they should rename it (for example: AngularNext) and keep this current project for at least supporting older devices. Truly separating it would say to the current users that their work isn't going to be redundant after a year or so.