1
|
import { RouterModule, Routes } from '@angular/router';
|
2
|
import { NgModule } from '@angular/core';
|
3
|
import { SourcesRegisterComponent } from './sources-register.component';
|
4
|
import { SrLiteratureComponent } from './sources-register/sr-literature.component';
|
5
|
import { SrDataComponent } from './sources-register/sr-data.component';
|
6
|
import { SrJournalComponent } from './sources-register/sr-journal.component';
|
7
|
import { SrAggregatorComponent } from './sources-register/sr-aggregator.component';
|
8
|
|
9
|
const sourcesRoutes: Routes = [
|
10
|
{
|
11
|
path: '',
|
12
|
// component: SourcesComponent,
|
13
|
children: [
|
14
|
{
|
15
|
path: 'register',
|
16
|
children: [
|
17
|
{
|
18
|
path: '',
|
19
|
component: SourcesRegisterComponent
|
20
|
},
|
21
|
{
|
22
|
path: 'literature',
|
23
|
component: SrLiteratureComponent
|
24
|
},
|
25
|
{
|
26
|
path: 'data',
|
27
|
component: SrDataComponent
|
28
|
},
|
29
|
{
|
30
|
path: 'journal',
|
31
|
component: SrJournalComponent
|
32
|
},
|
33
|
{
|
34
|
path: 'aggregator',
|
35
|
component: SrAggregatorComponent
|
36
|
}
|
37
|
]
|
38
|
},
|
39
|
]
|
40
|
// path: '',
|
41
|
// component: SourcesRegisterComponent,
|
42
|
// children: [
|
43
|
// {
|
44
|
// path: 'literature',
|
45
|
// component: SrLiteratureComponent
|
46
|
// },
|
47
|
// {
|
48
|
// path: 'data',
|
49
|
// component: SrDataComponent
|
50
|
// },
|
51
|
// {
|
52
|
// path: 'journal',
|
53
|
// component: SrJournalComponent
|
54
|
// },
|
55
|
// {
|
56
|
// path: 'aggregator',
|
57
|
// component: SrAggregatorComponent
|
58
|
// }
|
59
|
// ]
|
60
|
}
|
61
|
];
|
62
|
|
63
|
@NgModule ({
|
64
|
imports: [RouterModule.forChild(sourcesRoutes)],
|
65
|
exports: [RouterModule]
|
66
|
})
|
67
|
|
68
|
export class SourcesRouting {}
|