Last Tuesday I enjoyed a talk of Miško Hevery about Angular2 thanks to guys of AngularBeers. It was a talk about what is coming with Angular 2 and the key point with which we have to stay is that Angluar leave the concept of frontend framework to become a full a platform.
But, apart from this, I would like to remark a couple of things that will make Angular 2 a powerful option in a near future.
What does this means? Templates have been one of the places where mistakes are made since Angular 1. Even if we introduce TypeScript or lint tools, we couldn’t be able to detect mistakes in templates until they are evaluated at the runtime. Until now Angular 1.X compiles the templates each time they should be rendered.
With Angular 2 (without offline compile) the templates are compiled only once. But with offline compiling the templates are compiled on build time to JavaScript so it will be never compiled in the browser. The benefits we obtain here is that it enables us to statically type-check our templates with TypeScript, which is awesome, in addition to skipping the runtime compilation and smaller library size.
Universal (isomorphic) JavaScript support for Angular 2.
With Angular Universal, we can run Angular 2 in the server side and this gives us some advantages: