angular.courses

NG update Migrations — Angular 16

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

remove-default-project-option

angular-cliIntroduced 14.0.0

Remove 'defaultProject' option from workspace configuration. The project to use will be determined from the current working directory.

No example diff available for this migration yet.

replace-default-collection-option

angular-cliIntroduced 14.0.0

Replace 'defaultCollection' option in workspace configuration with 'schematicCollections'.

No example diff available for this migration yet.

guard-and-resolve-interfaces

angular16.0.0

In Angular version 15.2, the guard and resolver interfaces (CanActivate, Resolve, etc) were deprecated. This migration removes imports and 'implements' clauses that contain them.

No example diff available for this migration yet.

remove-module-id

angular16.0.0

As of Angular v16, the `moduleId` property of `@Component` is deprecated as it no longer has any effect.

No example diff available for this migration yet.

update-server-builder-config

angular-cli16.0.0

Update the '@angular-devkit/build-angular:server' builder configuration to disable 'buildOptimizer' for non optimized builds.

No example diff available for this migration yet.