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.
Sara (a good coworker and better friend), Miško and me
But, a part from this, I would like to remark a couple of things that will make Angular 2 a powerful option in a near future.
What 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 Universal we can run Angular 2 in the server side and this give us some advantages:
- Better Perceived Performance: The users will instantly see a server rendered view which greatly improves perceived performance and the overall user experience.
- Optimized for Search Engines: Server-side pre-rendering is a reliable way to ensure that all search engines can access your content.
- Site Preview: Ensure that Facebook, Twitter and all other social media apps correctly display a preview image of your app. (I deal with this problem before and is a pain in the ass)