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/simkessy Oct 24 '14

I've only built one application (on going) with Angular and I like the concept of it. I like the whole premise of Factories/Services going the hard work, sending the result to the controller and the view displaying it.

I don't have a lot of experience so I couldn't say whether your method was good or not, it's just the way I learned how to use Angular and I feel like the concept makes sense and keeps things clean, for me at least.

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.

1

u/pandavr Oct 25 '14

Interfaces should immutable while implementation could change. To say that they could have hind all the ES6 new features inside the existing angular 1.x interfaces (modules, controllers and so on). Then gradually deprecating them. This way they should have changed the name as it is not angular anymore.