Revision 58098
Added by Stefania Martziou about 4 years ago
metrics.routing.ts | ||
---|---|---|
2 | 2 |
* Created by myrto on 11/27/17. |
3 | 3 |
*/ |
4 | 4 |
import { RouterModule, Routes } from '@angular/router'; |
5 |
import { MetricsComponent } from './metrics.component'; |
|
6 | 5 |
import { MetricsEnableComponent } from './metrics-enable.component'; |
7 | 6 |
import { MetricsShowComponent } from './metrics-show.component'; |
8 | 7 |
import { MetricsInstructionsComponent } from './metrics-instructions.component'; |
... | ... | |
12 | 11 |
import { NgModule } from '@angular/core'; |
13 | 12 |
|
14 | 13 |
const metricsRoutes: Routes = [ |
15 |
{ |
|
16 |
path: '', |
|
17 |
component: MetricsComponent |
|
18 |
}, |
|
19 |
{ |
|
20 |
path: 'enable/:id', |
|
21 |
component: MetricsEnableComponent |
|
22 |
}, |
|
23 |
{ |
|
24 |
path: 'show_metrics/:id', |
|
25 |
component: MetricsShowComponent |
|
26 |
}, |
|
27 |
{ |
|
28 |
path: 'instructions/:id', |
|
29 |
component: MetricsInstructionsComponent |
|
30 |
}, |
|
31 |
{ |
|
32 |
path: 'usagestats/:id', |
|
33 |
component: MetricsUsagestatsComponent |
|
34 |
}, |
|
35 |
{ |
|
36 |
path: 'usagestats/:id/:reportID', |
|
37 |
component: MetricsUsagestatsReportComponent |
|
38 |
}, |
|
39 |
{ |
|
40 |
path: 'usagestats-report-results', |
|
41 |
component: MetricsUsagestatsReportResultsComponent |
|
42 |
} |
|
14 |
{ |
|
15 |
path: '', |
|
16 |
children: [ |
|
17 |
{ |
|
18 |
path: '', |
|
19 |
redirectTo: 'enable', |
|
20 |
// pathMatch: 'full' |
|
21 |
}, |
|
22 |
{ |
|
23 |
path: 'enable', |
|
24 |
component: MetricsEnableComponent |
|
25 |
}, |
|
26 |
{ |
|
27 |
path: 'show_metrics', |
|
28 |
component: MetricsShowComponent |
|
29 |
}, |
|
30 |
{ |
|
31 |
path: 'instructions', |
|
32 |
component: MetricsInstructionsComponent |
|
33 |
}, |
|
34 |
{ |
|
35 |
path: 'usagestats', |
|
36 |
component: MetricsUsagestatsComponent |
|
37 |
}, |
|
38 |
{ |
|
39 |
path: 'usagestats/:reportID', |
|
40 |
component: MetricsUsagestatsReportComponent |
|
41 |
}, |
|
42 |
{ |
|
43 |
path: 'usagestats-report-results', |
|
44 |
component: MetricsUsagestatsReportResultsComponent |
|
45 |
} |
|
46 |
] |
|
47 |
} |
|
43 | 48 |
]; |
44 | 49 |
|
45 | 50 |
|
Also available in: Unified diff
Second commit for the new layout provided by the UX team