1 import { NgModule } from '@angular/core'
2 import { RouterModule, Routes } from '@angular/router'
3 import { SearchComponent } from '@app/search/search.component'
4 import { MetaGuard } from '@ngx-meta/core'
5 import { VideoLazyLoadResolver } from './video-lazy-load.resolver'
6 import { ChannelLazyLoadResolver } from './channel-lazy-load.resolver'
8 const searchRoutes: Routes = [
11 component: SearchComponent,
12 canActivate: [ MetaGuard ],
20 path: 'search/lazy-load-video',
21 component: SearchComponent,
22 canActivate: [ MetaGuard ],
24 data: VideoLazyLoadResolver
28 path: 'search/lazy-load-channel',
29 component: SearchComponent,
30 canActivate: [ MetaGuard ],
32 data: ChannelLazyLoadResolver
38 imports: [ RouterModule.forChild(searchRoutes) ],
39 exports: [ RouterModule ]
41 export class SearchRoutingModule {}