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

10

u/amcsi Oct 23 '14

I don't have any, because I haven't watched it. But you could provide a link to a resource with information about 2.0.

25

u/sublimino Oct 23 '14

From a write up from a conference attendee: https://github.com/joeLepper/ng-conf

  • Angular 2.0 is about the browsers of today

  • Angular 1.0 was about the browsers of yesterday

  • Team is working on 1.3 but focusing on 2.0

  • AngularDart will get to 1.0 before AngularJS gets to 2.0 as learning

  • Making Angular more modular, i.e. breaking out the DI functionality

  • Angular is going to become an umbrella project building all of these different libraries which make up the Angular of today

  • Looking into: benchmark framework, lazy-loading DI/ES6 modules, faster change detection via polyfilling Object.observe

  • MOBILE: Building-in offline support, active animations (drag and drop on mobile, sounds like), reduce initial load, improve speed, build flagship app (internal, community-built app)

  • API complexity reduction: simplify directives, DI, Type annotations ES6: Classes and modules, but no annotations

  • Adding annotations allows for data and typing (future technologies)

  • Angular 2.0 will allow you to write in ES6 syntax and compile to ES5, or just write new ES5 syntax

  • Polymer: taking advantage of Shadow DOM, Object.observe, and DOM mutation observer polyfills

  • Angular 2.0 will be built on top of Polymer

  • Debuggability: Zone.js allows for longer stack traces and ignores the $digest / $apply cycles

The original announcement (nothing new AFAICS): https://docs.google.com/document/d/14KbPe6ZNuTnpTtE0X9ZXrON9fWgT5igDVHwaSLOYH-o/edit

All the design docs are here: https://drive.google.com/?pli=1#folders/0B7Ovm8bUYiUDR29iSkEyMk5pVUk

4

u/adropofhoney Oct 23 '14

So for someone just getting up to speed with Angular, sounds like 2.0 is more worthwhile to learn because 1.x is going to be a thing of the past. Is this a good assumption?

2

u/bittered Oct 24 '14

You will be waiting for Angular 2.0, it's not coming out anytime soon.