NG update Migrations — Angular 9

Migrations available with the ng update Angular CLI command for Angular 9. Details and example diffs below.

dynamic-queries

angular9.0.0

Static flag migration. Removes the `static` flag from dynamic queries. As of Angular 9, the "static" flag defaults to false and is no longer required for your view and content queries. Read more about this here: https://v9.angular.io/guide/migration-dynamic-flag

No example diff available for this migration yet.

lazy-loading-syntax

angular-cli9.0.0

Lazy loading syntax migration. Update lazy loading syntax to use dynamic imports.

No example diff available for this migration yet.

migration-09

angular-cli9.0.0

Update an Angular CLI project to version 9.

No example diff available for this migration yet.

missing-injectable

angularIntroduced 9.0.0

Missing @Injectable and incomplete provider definition migration. As of Angular 9, enforcement of @Injectable decorators for DI is a bit stricter and incomplete provider definitions behave differently. Read more about this here: https://v9.angular.io/guide/migration-injectable

No example diff available for this migration yet.

module-with-providers

angularIntroduced 9.0.0

ModuleWithProviders migration. As of Angular 10, the ModuleWithProviders type requires a generic. This migration adds the generic where it is missing. Read more about this here: https://v10.angular.io/guide/migration-module-with-providers

No example diff available for this migration yet.

renderer-to-renderer2

angular9.0.0

Renderer to Renderer2 migration. As of Angular 9, the Renderer class is no longer available. Renderer2 should be used instead. Read more about this here: https://v9.angular.io/guide/migration-renderer

No example diff available for this migration yet.

undecorated-classes-with-decorated-fields

angularIntroduced 9.0.0

Undecorated classes with Angular features migration. In version 10, classes that use Angular features and do not have an Angular decorator are no longer supported. Read more about this here: https://v10.angular.io/guide/migration-undecorated-classes

No example diff available for this migration yet.

undecorated-classes-with-di

angular9.0.0

Undecorated classes with DI migration. As of Angular 9, it is no longer supported to use Angular DI on a class that does not have an Angular decorator. Read more about this here: https://v9.angular.io/guide/migration-undecorated-classes

No example diff available for this migration yet.

workspace-version-9

angular-cli9.0.0

Angular Workspace migration. Update an Angular CLI workspace to version 9.

No example diff available for this migration yet.

schematic-options-9

angular-cli9.0.2

Replace deprecated 'styleext' and 'spec' Angular schematic options.

No example diff available for this migration yet.