Skip to content

Angular 4

Fabien GAUTREAULT edited this page Mar 30, 2021 · 5 revisions

<< Back to Home

No major changes, objective was to increase performance and bug fix.

Release date: March 2017

https://github.com/angular/angular/blob/4.4.x/CHANGELOG.md

Compatibility: Typescript 2.4.x Nodejs 6.9.x/8.9.x or later minor version Angular CLI 1.4.10

https://gist.github.com/LayZeeDK/c822cc812f75bb07b7c55d07ba2719b3

Main Features

In this particular version we are going to explore: Universal - Server side rendering πŸ‘€ πŸ’» This feature serves as an example and will not be merged along the core project neither maintained.

Link to feature

Components size reduced by 60% & Faster compilation

The angular team as been working on AOT compiler for that. Here is their quote:

We’ve made changes under to hood to what AOT generated code looks like. These changes reduce the size of the generated code for your components by around 60% in most cases. The more complex your templates are, the higher the savings. During our release candidate period, we heard from many developers that migrating to 4 reduced their production bundles by hundreds of kilobytes.

https://github.com/angular/angular/blob/master/CHANGELOG.md#view-engine

Read more on this page about Compilators - JIT, AOT & IVY

Universal - Server side rendering πŸ‘€ πŸ’»

The angular team took back the project to maintain it. Here is their quote:

Universal, the project that allows developers to run Angular on a server, is now up to date with Angular again, and has been adopted by the Angular team. This release now includes the results of the work from the Universal team over the last few months. The majority of the Universal code is now in platform-server. To learn more about this change, take a look the new renderModuleFactory method...

https://github.com/angular/angular/blob/master/CHANGELOG.md#universal

Read more on this page about Universal

LNO

Clone this wiki locally