Skip to main content


Showing posts with the label Angular 9

Upgrade Angular 8 to Angular 9 | Upgrade angular cli 9

Upgrade Angular 8 to Angular 9 Before Updating  B.Step 1 Instead of importing from @angular/material, you should import deeply from the specific component.  E.g. import {MatAutocompleteModule} from '@angular/material/autocomplete';.  ng update will do this automatically for you. B.Step 2 For lazy loaded modules via the router, make sure you are using dynamic imports. Importing via string is removed in v9. ng update should take care of this automatically.  Before  const routes: Routes = [{   path: 'lazy',   // The following string syntax for loadChildren is deprecated   loadChildren: './lazy/lazy.module#LazyModule' }]; After const routes: Routes = [{   path: 'lazy',   // The new import() syntax   loadChildren: () => import('./lazy/lazy.module').then(m => m.LazyModule) }]; B.Step 3 Running Angular itself in a web worker via @angular/platform-webworker is not yet supported in Angular CLI. B.Step 4 Support for