Configure HTML/JavaScript

Thursday, March 9, 2017

Upgrading from angular 2 to angular 4 (now in 4.0.0-rc.2)



Angular 4.0.0-rc.2 released:


The new version if angular will be 4.0.0 and google is already in the path to make it happen. The main reason to upgrade is angular router is ahead of normal angular which now in 2.4.9 version and the router is in 3.x.x version. To make a single version, the new angular 4 is coming

Of course, this will not be the only change in the new version!

Typescript:
Now the typescript 2.1.5 is minimum requirement for the angular 4.0.0 on wards

What might be the new changes


most probably these will be the new changes


 - Ahead of Compilation will be measure changes and it will be the default.
 - Angular cli is moved to @angular/cli and its now in rc.1 version
 - The angular cli default build will reduce the file size drastically less
 - changed most of the types from classes to interfaces


How to generate angular 4.x.x-rc.x project with cli:

You just need to pass --ng4 to tell cli to generate an angular 4 project.

the command will be  ng new appName --ng5 -style=scss

Let me know if nay question!!