This tutorial will show you how to upgrade your Angular 2 web application to use Angular 4.
Upgrading to Angular 4 is an easy task and will greatly speed up your Angular 2 app! I have had no issues or complications when upgrading all our current projects.
It is as easy as updating your projects
composer.json file. We can do this through the command line using NPM.
If you are considering upgrading here is 4 reasons to upgrade to Angular 4
Angular is in the process of building an “interactive Angular Update Guide“. After messing around with it some, if you check all the options, the install process is super easy!
Once you have done that run
ng serve as you normally would and BOOM it should work. I know it never is that easy, but it really is this time!
Note: When i ran the command there were multiple
warnings. A lot of those can be ignored as Angular 4 was designed so that Angular 2 apps will work (of course there are rare exceptions!).
If you rely on Animations refer to this article that will show you how to get them working.