import { NgModule } from '@angular/core';
import { PreloadAllModules, RouterModule, Routes } from '@angular/router';

const routes: Routes = [
  { path: '', loadChildren: './tabs/tabs.module#TabsPageModule' },
  { path: 'home', loadChildren: './tabs/home/home.module#HomePageModule' },
  { path: 'discover', loadChildren: './tabs/discover/discover.module#DiscoverPageModule' },
  { path: 'serve', loadChildren: './tabs/serve/serve.module#ServePageModule' },
  { path: 'mine', loadChildren: './tabs/mine/mine.module#MinePageModule' },
];
@NgModule({
  imports: [
    RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
  ],
  exports: [RouterModule]
})
export class AppRoutingModule {}
