//import { TabsPageModule } from './tabs/tabs.module'; import { NgModule } from '@angular/core'; import { PreloadAllModules, RouterModule, Routes } from '@angular/router'; const routes: Routes = [ { path: '', loadChildren: () => import('./home/home.module').then(m => m.HomePageModule) }, { path: 'member', loadChildren: () => import('./tabs/tabs.module').then(m => m.TabsPageModule) }, { path: 'home', loadChildren: () => import('./home/home.module').then( m => m.HomePageModule) }, { path: 'about', loadChildren: () => import('./about/about.module').then(m => m.AboutPageModule) }, { path: 'blog', loadChildren: () => import('./blog/blog.module').then( m => m.BlogPageModule) }, { path: 'blogdetail', loadChildren: () => import('./blogdetail/blogdetail.module').then( m => m.BlogdetailPageModule) }, { path: 'login', loadChildren: () => import('./login/login.module').then( m => m.LoginPageModule) } ]; @NgModule({ imports: [ RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules }) ], exports: [RouterModule] }) export class AppRoutingModule {}