How to update angular version in IONIC build from 8 to latest

680 views Asked by At

I have tried with following commands but after installing latest versions routing is not working saying that module not found.

Please let me know how can i update properly

ng update @angular/core @angular/cli
npm install @ionic/angular-toolkit@latest
1

There are 1 answers

0
china veerreddy On

My problem got resolved by changing syntax in router file as below

   loadChildren: () => import('./pages/tabs/tabs.router.module').then(m => m.TabsPageModule)
 

And also updated tsconfig according to Angular version12