Update Angular 4 to Angular 5
Need to add npm module, which will compare the package.json and check the online version of latest release of the build.
NPM: npm install -g npm-check-updates (https://www.npmjs.com/package/npm-check-updates)
ncu -u to upgrade the application package.json after that need to remove the node_module folder and run the npm install.
This is very useful npm to upgrade any of the node projects. You can do similar thing manually but there a lot of problems might be faced due to the dependent version of other modules.
Major Changes of Angular5
- AOT – is a major change that decreases the aot time.
- HTTP module is there but introduce the HTTP client
- the zone is now a separate module.
- Aotplugin is no more exist for webpack, Now AngularCompilePlugin is introduced.
- PWA service-worker is introduced.