Release insightsAngular 21
What Angular 21 brought, release by release: features that changed stage, the migrations ng update runs, every commit, and the tooling around it.
NG Update 10
Migrations the ng update command runs for you when moving to Angular 21.
- 21.0.0add-bootstrap-context-to-server-main
Adds `BootstrapContext` to `bootstrapApplication` calls in `main.server.ts` to support server rendering.
angular - 21.0.0application-config-core
Moves imports of `ApplicationConfig` from `@angular/platform-browser` to `@angular/core`
angular - 21.0.0bootstrap-options-migration
Migrates deprecated bootstrap options to providers.
angular - 21.0.0control-flow-migration
Converts the entire application to block control flow syntax
angular - 21.0.0remove-default-karma-config
Remove any karma configuration files that only contain the default content. The default configuration is automatically available without a specific project file.
angular-cli - 21.0.0router-current-navigation
Replaces usages of the deprecated Router.getCurrentNavigation method with the Router.currentNavigation signal
angular - 21.0.0router-last-successful-navigation
Ensures that the Router.lastSuccessfulNavigation signal is now invoked
angular - 21.0.0update-module-resolution
Update 'moduleResolution' to 'bundler' in TypeScript configurations. You can read more about this, here: https://www.typescriptlang.org/tsconfig/#moduleResolution
angular-cli - 21.0.0update-typescript-lib
Updates the 'lib' property in tsconfig files to use 'es2022' or a more modern version.
angular-cli - 21.0.0use-application-builder
Migrate application projects to the new build system. Application projects that are using the '@angular-devkit/build-angular' package's 'browser' and/or 'browser-esbuild' builders will be migrated to use the new 'application' builder. You can read more about this, including known issues and limitations, here: https://angular.dev/tools/cli/build-system-migration
angular-cli