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'
11 import { MyAccountVideoImportsComponent } from '@app/+my-account/my-account-video-imports/my-account-video-imports.component'
13 const myAccountRoutes: Routes = [
16 component: MyAccountComponent,
17 canActivateChild: [ MetaGuard, LoginGuard ],
21 redirectTo: 'settings',
26 component: MyAccountSettingsComponent,
29 title: 'Account settings'
34 path: 'video-channels',
35 component: MyAccountVideoChannelsComponent,
38 title: 'Account video channels'
43 path: 'video-channels/create',
44 component: MyAccountVideoChannelCreateComponent,
47 title: 'Create new video channel'
52 path: 'video-channels/update/:videoChannelId',
53 component: MyAccountVideoChannelUpdateComponent,
56 title: 'Update video channel'
62 component: MyAccountVideosComponent,
65 title: 'Account videos'
70 path: 'video-imports',
71 component: MyAccountVideoImportsComponent,
74 title: 'Account video imports'
83 imports: [ RouterModule.forChild(myAccountRoutes) ],
84 exports: [ RouterModule ]
86 export class MyAccountRoutingModule {}