1 import { NgModule } from '@angular/core'
2 import { RouterModule, Routes } from '@angular/router'
3 import { SearchComponent } from './search.component'
4 import { ChannelLazyLoadResolver, PlaylistLazyLoadResolver, VideoLazyLoadResolver } from './shared'
6 const searchRoutes: Routes = [
9 component: SearchComponent,
12 title: $localize`Search`
17 path: 'lazy-load-video',
18 component: SearchComponent,
20 data: VideoLazyLoadResolver
24 path: 'lazy-load-channel',
25 component: SearchComponent,
27 data: ChannelLazyLoadResolver
31 path: 'lazy-load-playlist',
32 component: SearchComponent,
34 data: PlaylistLazyLoadResolver
40 imports: [ RouterModule.forChild(searchRoutes) ],
41 exports: [ RouterModule ]
43 export class SearchRoutingModule {}