Note Regarding Lazy Loading Routes
If you have Ionic CLI version > 5.2.3
installed. As Ionic 4 is now upgraded to Angular 8. So, Lazy Loading routes work slightly differently.
In the application where ever you’re using loadChildren
for lazy loading modules. The newer syntax uses the import statement:
- {
- path: ”,
- loadChildren: () => import(‘./tabs/tabs.module’).then(m => m.TabsPageModule)
- }
Previous Syntax was like following:
- { path: ”, loadChildren: ‘./tabs/tabs.module#TabsPageModule’ }
The newer syntax will give the autocomplete while typing the module name. Apart from that everything should work fine.
If you’re starting out, you will now get the import
syntax automatically and you’ll be good to go.