Tuesday, 11 February 2020

How to upgrade to Angular 9


Update your existing project to the new version of Angular now easily

For step-by-step instructions on how to update to the latest Angular release, use the interactive update guide at update.angular.io

If your application uses the CLI, you can update to version 9 automatically with the help of the ng update script

Steps to upgrade to Angular 9

1. Identify the existing version of angular, in my case it was Angular 8.
Angular command  $ ng version



2. Upgrade Angular CLI
Angular command $ ng update @angular/cli @angular/core --next  



         Now your Angular CLI and Angular Project is upgraded to Angular 9 successfully.. As Angular 9 is in RC period, the flag --next is required while using ng update command. This flag is not required, once final version of Angular 9 is released.The above commands will run a series of small migrations that will convert the code of your application to be compatible with version 9 as shown in above image.

No comments:

Post a Comment

ML.NET: Machine Learning for .NET Developers

Machine Learning in .Net ML.NET is a free software machine learning library for the C# and F# programming languages. It also supports Pyth...