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'
8 import { MyAccountVideoChannelsComponent } from '@app/+my-account/my-account-video-channels/my-account-video-channels.component'
9 import { MyAccountVideoChannelCreateComponent } from '@app/+my-account/my-account-video-channels/my-account-video-channel-create.component'
10 import { MyAccountVideoChannelUpdateComponent } from '@app/+my-account/my-account-video-channels/my-account-video-channel-update.component'
12 const myAccountRoutes: Routes = [
15 component: MyAccountComponent,
16 canActivateChild: [ MetaGuard, LoginGuard ],
20 redirectTo: 'settings',
25 component: MyAccountSettingsComponent,
28 title: 'Account settings'
33 path: 'video-channels',
34 component: MyAccountVideoChannelsComponent,
37 title: 'Account video channels'
42 path: 'video-channels/create',
43 component: MyAccountVideoChannelCreateComponent,
46 title: 'Create new video channel'
51 path: 'video-channels/update/:videoChannelId',
52 component: MyAccountVideoChannelUpdateComponent,
55 title: 'Update video channel'
61 component: MyAccountVideosComponent,
64 title: 'Account videos'
73 imports: [ RouterModule.forChild(myAccountRoutes) ],
74 exports: [ RouterModule ]
76 export class MyAccountRoutingModule {}