|
@@ -1,29 +1,30 @@
|
|
|
-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)
|
|
|
- },{
|
|
|
- path: 'user',
|
|
|
- loadChildren: () => import('../modules/user/user.module').then(m => m.UserModule)
|
|
|
- },
|
|
|
- {
|
|
|
- path: 'mail',
|
|
|
- loadChildren: () => import('./mail/mail.module').then( m => m.MailPageModule)
|
|
|
- },
{
|
|
|
+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)
|
|
|
+ },{
|
|
|
+ path: 'user',
|
|
|
+ loadChildren: () => import('../modules/user/user.module').then(m => m.UserModule)
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'mail',
|
|
|
+ loadChildren: () => import('./mail/mail.module').then( m => m.MailPageModule)
|
|
|
+ },
|
|
|
+ {
|
|
|
path: 'moreplace',
|
|
|
loadChildren: () => import('./moreplace/moreplace.module').then( m => m.MoreplacePageModule)
|
|
|
},
|
|
@@ -31,13 +32,17 @@ const routes: Routes = [
|
|
|
path: 'morecity',
|
|
|
loadChildren: () => import('./morecity/morecity.module').then( m => m.MorecityPageModule)
|
|
|
},
|
|
|
+ {
|
|
|
+ path: 'movie/:id',
|
|
|
+ loadChildren: () => import('./movie-detail/movie-detail.module').then( m => m.MovieDetailPageModule)
|
|
|
+ },
|
|
|
+
|
|
|
|
|
|
-
|
|
|
-];
|
|
|
-@NgModule({
|
|
|
- imports: [
|
|
|
- RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
|
|
|
- ],
|
|
|
- exports: [RouterModule]
|
|
|
-})
|
|
|
-export class AppRoutingModule {}
|
|
|
+];
|
|
|
+@NgModule({
|
|
|
+ imports: [
|
|
|
+ RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
|
|
|
+ ],
|
|
|
+ exports: [RouterModule]
|
|
|
+})
|
|
|
+export class AppRoutingModule {}
|