r/programming • • Sep 15 '16

Angular 2.0.0 officially released

https://www.npmjs.com/~angular
1.3k Upvotes

535 comments sorted by

View all comments

3

u/Reeywhaar Sep 15 '16

That ngModule thing... gosh, they returned to HighScalabilityEnterprisePlatform with providers, factories, factoryproviders, factorymoduleproviders, providermodulefactoriesproviders. Why did they need to invent this shit and sticks injection system as if es6 imports and decorators was not enough.

13

u/tomastrajan Sep 15 '16

Because it servers as a context for their template compiler so that they can do AoT compilation and ship final bundle with -80% of code. Thats seems pretty reasonable to me...

3

u/fenduru Sep 15 '16

That size reduction is in a hello world app. I'm less optimistic about large applications.

→ More replies (3)