-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp-routing.module.ts
21 lines (19 loc) · 996 Bytes
/
app-routing.module.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
const routes: Routes = [
{ path: '', redirectTo: 'home', pathMatch: 'full' },
{ path: 'home', loadChildren: './home/home.module#HomePageModule' },
{ path: 'login', loadChildren: './login/login.module#LoginPageModule' },
{ path: 'signup', loadChildren: './signup/signup.module#SignupPageModule' },
{ path: 'dummy', loadChildren: './dummy/dummy.module#DummyPageModule' },
{ path: 'profile', loadChildren: './profile/profile.module#ProfilePageModule' },
{ path: 'create', loadChildren: './create/create.module#CreatePageModule' },
{ path: 'edit', loadChildren: './edit/edit.module#EditPageModule' },
{ path: 'comments', loadChildren: './comments/comments.module#CommentsPageModule' },
{ path: 'likes', loadChildren: './likes/likes.module#LikesPageModule' },
];
@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule]
})
export class AppRoutingModule { }