- What are the major differences in Angular 4 and Angular 5?
- How much effort will be required for migrating Angular 4 project to Angular 5
- Is there any official documentation available for migration from Angular 4 to Angular 5

- 1
-
1Possible duplicate of [Migrating Angular 4.x to Angular 5](https://stackoverflow.com/questions/47104188/migrating-angular-4-x-to-angular-5) – ConnorsFan Mar 13 '18 at 18:16
-
@sachin You can review this post: https://stackoverflow.com/questions/47104188/migrating-angular-4-x-to-angular-5 – Rot-man Apr 02 '18 at 21:24
2 Answers
You can use this migration guide to get a "checklist". It tells you what to do before and after the upgrade.
To summarize it,
template
was deprecated and it is removed. Change them tong-template
- Date, Currency, decimal, percent pipes are deprecated and renamed. If you want to use old versions of them, you have to edit your code.
- HttpModule is deprecated and will be removed later (still exists in v5). You should change it to HttpClientModule

- 8,719
- 1
- 28
- 48
a) Build Optimizer: This is a tool which was included in the CLI to help the developers in creating a smaller bundle for the application. Apart from decreasing the users’ bundle size, the feature also helps in increasing the boot speed of the application for the users.
b) Compiler Improvements: To enhance faster rebuilds for production and AOT (Ahead of Time) builds, Angular 5 supports incremental compilation.
c) New Router Lifecycle Events:This new feature was added to enable the developers in tracking the cycle of the router, starting from running guards to the completion of activation.
d) HttpClient: This feature has been recommended for all the application as HTTPClient was highly appreciated. The framework developer are not suggesting anymore, to use the previous @angular/http library. Developers can update the HTTPClient in 3 easy steps:
1.In each module, replace HttpModule with Http Client Module from
@angular/common/http.
Inject the HttpClient service remove any
map(res =>res.json())
calls, which are no longer needed.

- 267
- 4
- 8