|
- import { NgModule } from '@angular/core';
- import { PreloadAllModules, RouterModule, Routes } from '@angular/router';
-
- const routes: Routes = [
- {
- path: '',
- loadChildren: () => import('./tabs/tabs.module').then(m => m.TabsPageModule)
- },
- {
- path: 'home',
- loadChildren: () => import('./home/home.module').then( m => m.HomePageModule)
- },
- {
- path: 'live',
- loadChildren: () => import('./live/live.module').then( m => m.LivePageModule)
- },
- {
- path: 'more',
- loadChildren: () => import('./more/more.module').then( m => m.MorePageModule)
- },
- {
- path: 'home-details',
- loadChildren: () => import('./home-details/home-details.module').then( m => m.HomeDetailsPageModule)
- },
- {
- path: 'player-stats',
- loadChildren: () => import('./player-stats/player-stats.module').then( m => m.PlayerStatsPageModule)
- },
- {
- path: 'booking',
- loadChildren: () => import('./booking/booking.module').then( m => m.BookingPageModule)
- },
- {
- path: 'booking-details',
- loadChildren: () => import('./booking-details/booking-details.module').then( m => m.BookingDetailsPageModule)
- },
- {
- path: 'match-details',
- loadChildren: () => import('./match-details/match-details.module').then( m => m.MatchDetailsPageModule)
- },
- {
- path: 'chat',
- loadChildren: () => import('./chat/chat.module').then( m => m.ChatPageModule)
- },
- {
- path: 'collections',
- loadChildren: () => import('./collections/collections.module').then( m => m.CollectionsPageModule)
- }
- ];
- @NgModule({
- imports: [
- RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
- ],
- exports: [RouterModule]
- })
- export class AppRoutingModule {}
|