1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
import { NgModule } from '@angular/core'
import { RouterModule, Routes } from '@angular/router'
import { SearchComponent } from './search.component'
import { ChannelLazyLoadResolver, PlaylistLazyLoadResolver, VideoLazyLoadResolver } from './shared'
const searchRoutes: Routes = [
{
path: '',
component: SearchComponent,
data: {
meta: {
title: $localize`Search`
}
}
},
{
path: 'lazy-load-video',
component: SearchComponent,
resolve: {
data: VideoLazyLoadResolver
}
},
{
path: 'lazy-load-channel',
component: SearchComponent,
resolve: {
data: ChannelLazyLoadResolver
}
},
{
path: 'lazy-load-playlist',
component: SearchComponent,
resolve: {
data: PlaylistLazyLoadResolver
}
}
]
@NgModule({
imports: [ RouterModule.forChild(searchRoutes) ],
exports: [ RouterModule ]
})
export class SearchRoutingModule {}
|