app-routing.module.ts 1.62 KB
Newer Older
gap95's avatar
gap95 committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import { NgModule } from '@angular/core';
import { PreloadAllModules, RouterModule, Routes } from '@angular/router';

const routes: Routes = [
  {
    path: '',
    redirectTo: 'login',
    pathMatch: 'full'
  },
  {
    path: 'home',
    loadChildren: () => import('./home/home.module').then(m => m.HomePageModule)
  },
  {
    path: 'list',
    loadChildren: () => import('./list/list.module').then(m => m.ListPageModule)
  },
  {
    path: 'login',
    loadChildren: () => import('./auth/login/login.module').then( m => m.LoginPageModule)
  },
  {
    path: 'register',
    loadChildren: () => import('./auth/register/register.module').then( m => m.RegisterPageModule)
  },
  {
27
28
    path: 'myreservation',
    loadChildren: () => import('./myreservation/myreservation.module').then( m => m.MyreservationPageModule)
Priyanka Upadhye's avatar
Priyanka Upadhye committed
29
30
31
32
  },
  {
    path: 'hirebike',
    loadChildren: () => import('./hirebike/hirebike.module').then( m => m.HirebikePageModule)
gap95's avatar
gap95 committed
33
34
35
36
  },
  {
    path: 'ridehistory',
    loadChildren: () => import('./ridehistory/ridehistory.module').then( m => m.RidehistoryPageModule)
Priyanka Upadhye's avatar
Priyanka Upadhye committed
37
  },
gap95's avatar
gap95 committed
38
39
40
41
  {
  path: 'feedback',
  loadChildren: () => import('./feedback/feedback.module').then( m => m.FeedbackPageModule)
},
Priyanka Upadhye's avatar
Priyanka Upadhye committed
42
43
44
  {
    path: 'help-line',
    loadChildren: () => import('./help-line/help-line.module').then( m => m.HelpLinePageModule)
45
46
47
48
  },
  {
    path: 'reset-password',
    loadChildren: () => import('./reset-password/reset-password.module').then( m => m.ResetPasswordPageModule)
Rron Jahja's avatar
Rron Jahja committed
49
50
  }

gap95's avatar
gap95 committed
51
52
53
54
55
56
57
58
59
60
61
  

];

@NgModule({
  imports: [
    RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
  ],
  exports: [RouterModule]
})
export class AppRoutingModule {}