1 import { NgModule } from '@angular/core'
2 import { RouterModule, Routes } from '@angular/router'
3 import { MetaGuard } from '@ngx-meta/core'
4 import { LoginGuard } from '../core'
5 import { MyAccountComponent } from './my-account.component'
6 import { MyAccountSettingsComponent } from './my-account-settings/my-account-settings.component'
7 import { MyAccountVideosComponent } from './my-account-videos/my-account-videos.component'
9 const myAccountRoutes: Routes = [
12 component: MyAccountComponent,
13 canActivateChild: [ MetaGuard, LoginGuard ],
17 component: MyAccountSettingsComponent,
20 title: 'Account settings'
26 component: MyAccountVideosComponent,
29 title: 'Account videos'
38 imports: [ RouterModule.forChild(myAccountRoutes) ],
39 exports: [ RouterModule ]
41 export class MyAccountRoutingModule {}