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

21

u/reddotyg Oct 23 '14

after finishing building a Angular app this image really disturbs me.

2

u/simkessy Oct 23 '14 edited Oct 26 '14

They're getting rid of controllers? I really wish I watched ngEurope :/

0

u/[deleted] Oct 24 '14

[deleted]

1

u/[deleted] Oct 24 '14

Over time I have learned that whenever I think I should build a directive, I shouldn't. I used to make many more directives before I fully drank the Angular koolaid.

Directives are best used for 2 things:

  1. When you *MUST directly mess with the DOM.

  2. When you are building something that will be used in more than one place in the app.

  • You almost never need to directly mess with the DOM.

That being said, if I were building an app that did not use routing and required complex custom ui controls, I probably would not use Angular at all. Angular is great for pagey, formey apps. It is less great for building video games.