1
|
import { NgModule} from '@angular/core';
|
2
|
import { Routes, RouterModule} from '@angular/router';
|
3
|
|
4
|
const appRoutes: Routes = [
|
5
|
{
|
6
|
path: '',
|
7
|
loadChildren: './home/home.module#HomeModule'
|
8
|
},
|
9
|
{
|
10
|
path: 'about',
|
11
|
loadChildren: './about/about.module#AboutModule'
|
12
|
},
|
13
|
{
|
14
|
path: 'resources',
|
15
|
loadChildren: './resources/resources.module#ResourcesModule'
|
16
|
}
|
17
|
];
|
18
|
|
19
|
@NgModule({
|
20
|
imports: [ RouterModule.forRoot(appRoutes) ],
|
21
|
exports: [ RouterModule ]
|
22
|
})
|
23
|
export class AppRoutingModule {}
|