Upgrading Angular 4 to Angular 7

curiouswebster
curiouswebster used Ask the Experts™
on
Upgrading Angular 4 to Angular 7

I will be coding with Angular 7 in the near future and need to upgrade a project I created with Angular 4. This will be part of my preparation.

What steps need to be taken?

Thanks.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2017
Distinguished Expert 2018
Commented:
The best way to do this is the Angular update guide
https://update.angular.io/

Personally I would do an upgrade from 4 - 6 first.
Make a backup of your project (minuse node_modules)
Do the 4-6 upgrade
Make the changes they recommend regarding the breaking changes (specifically around rxjs).
When that is working do the 6-7 upgrade.

I recently did a 4-7 upgrade and spent a lot of time trying to get the project back to a working state.
curiouswebsterSoftware Engineer

Author

Commented:
thanks
Most Valuable Expert 2017
Distinguished Expert 2018

Commented:
You are welcome.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial