|
@@ -1,23 +1,27 @@
|
|
-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: 'setting',
|
|
|
|
- loadChildren: () => import('./setting/setting.module').then(m => m.SettingPageModule)
|
|
|
|
- },{
|
|
|
|
- path: 'smovies',
|
|
|
|
- loadChildren: () => import('./tab2/smovies/smovies.module').then( m => m.SMoviesPageModule)
|
|
|
|
|
|
+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: 'setting',
|
|
|
|
+ loadChildren: () => import('./setting/setting.module').then(m => m.SettingPageModule)
|
|
|
|
+ },{
|
|
|
|
+ path: 'smovies',
|
|
|
|
+ loadChildren: () => import('./tab2/smovies/smovies.module').then( m => m.SMoviesPageModule)
|
|
|
|
+ },
{
|
|
|
|
+ path: 'search',
|
|
|
|
+ loadChildren: () => import('./search/search.module').then( m => m.SearchPageModule)
|
|
}
|
|
}
|
|
-];
|
|
|
|
-@NgModule({
|
|
|
|
- imports: [
|
|
|
|
- RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
|
|
|
|
- ],
|
|
|
|
- exports: [RouterModule]
|
|
|
|
-})
|
|
|
|
-export class AppRoutingModule {}
|
|
|
|
|
|
+
|
|
|
|
+];
|
|
|
|
+@NgModule({
|
|
|
|
+ imports: [
|
|
|
|
+ RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
|
|
|
|
+ ],
|
|
|
|
+ exports: [RouterModule]
|
|
|
|
+})
|
|
|
|
+export class AppRoutingModule {}
|