Performing automated Angular Ivy migrations
Angular CLI supports automated migrations for both Angular framework packages and third-party Angular libraries. In this section, we will learn how to make the most out of the ng update
command. Finally, we will discuss important automated Angular Ivy migrations.
Making the most of the ng update command
The ng update
command is used to update Angular-specific package dependencies, both Angular framework packages and third-party Angular libraries. The ng update
command looks for automated migrations in the package bundle when updating to the specified package version.
To update Angular, the following command can be used:
ng update @angular/cli @angular/core
This will update all the main Angular framework packages to the latest version as well as performing their automated migrations. Angular CLI is responsible for workspace migrations while the Angular Core package is responsible for migrations to Angular's runtime packages...