blob: 5a61db41fef81b75b2fd7c86ae1a134f82e1602b (
plain) (
blame)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
import { NgModule } from '@angular/core'
import { RouterModule, Routes } from '@angular/router'
import { MetaGuard } from '@ngx-meta/core'
import { LoginGuard } from '../core'
import { MyAccountComponent } from './my-account.component'
import { MyAccountSettingsComponent } from './my-account-settings/my-account-settings.component'
import { MyAccountVideosComponent } from './my-account-videos/my-account-videos.component'
const myAccountRoutes: Routes = [
{
path: 'my-account',
component: MyAccountComponent,
canActivateChild: [ MetaGuard, LoginGuard ],
children: [
{
path: 'settings',
component: MyAccountSettingsComponent,
data: {
meta: {
title: 'Account settings'
}
}
},
{
path: 'videos',
component: MyAccountVideosComponent,
data: {
meta: {
title: 'Account videos'
}
}
}
]
}
]
@NgModule({
imports: [ RouterModule.forChild(myAccountRoutes) ],
exports: [ RouterModule ]
})
export class MyAccountRoutingModule {}
|