Migration
Composite Recipes
Recipes that include further recipes, often including the individual recipes below.
- Move
DOCUMENTimport to@angular/core - Remove IE11 polyfills
- Replace deep
zone.jsimports - Replace form classes with untyped variants
- Replace
node-sasswithsass
Recipes
- Add
@angular/localize/initpolyfill import - Add TestBed module teardown
- Add
defaultConfigurationto build targets - Add generic type to
ModuleWithProviders - Add
static: falseto view queries - Enable AOT compilation in
angular.json - Make standalone flag explicit
- Migrate
@Input()to signal-basedinput() - Migrate
@Output()to signal-basedoutput() - Migrate constructor injection to
inject() - Migrate query decorators to signal-based functions
- Migrate to solution-style tsconfig
- Remove
BrowserModule.withServerTransition - Remove
ComponentFactoryResolver - Remove
aotSummariesfrom TestBed - Remove
defaultProjectfromangular.json - Remove empty
ngOnInitlifecycle hooks - Remove
enableIvycompiler option - Remove
entryComponents - Remove
es5BrowserSupportfromangular.json - Remove
extractCssfromangular.json - Remove
moduleId - Remove redundant
standalone: true - Remove
relativeLinkResolution - Remove
static: falsefrom view queries - Remove zone.js polyfill from angular.json
- Rename
ExperimentalPendingTaskstoPendingTasks - Rename
afterRendertoafterEveryRender - Rename file
- Rename
provideExperimentalCheckNoChangesForDebugtoprovideCheckNoChangesForDebug - Rename
provideExperimentalZonelessChangeDetectiontoprovideZonelessChangeDetection - Replace
HttpClientModulewithprovideHttpClient() - Replace
InjectFlagswith options object - Replace
RouterLinkWithHrefwithRouterLink - Replace
TestBed.get()withTestBed.inject() - Replace
ViewEncapsulation.NativewithViewEncapsulation.ShadowDom - Replace
asyncwithwaitForAsync - Replace
initialNavigationoption values - Replace string-based
loadChildrenwith dynamicimport() - Replace
validator/asyncValidatorwith plural forms - Update component
templateUrl - Update
tsconfig.jsonmodule settings for Ivy - Update
tsconfig.jsontarget toes2017