Revision 58098
Added by Stefania Martziou about 4 years ago
content.routing.ts | ||
---|---|---|
1 | 1 |
import { RouterModule, Routes } from '@angular/router'; |
2 | 2 |
import { NgModule } from '@angular/core'; |
3 |
import { ContentEventsComponent } from './content-events.component'; |
|
4 | 3 |
import { ContentComponent } from './content.component'; |
5 | 4 |
import { ContentNotificationsComponent } from './content-notifications.component'; |
6 |
import { ContentEventsOfRepositoryComponent } from './content-events-of-repository.component'; |
|
7 |
import { ContentEventsOfRepoEventslistComponent } from './content-events-of-repo-eventslist.component'; |
|
8 | 5 |
import { ContentNotificationsOfSubscriptionComponent } from './content-notifications-of-subscription.component'; |
9 | 6 |
|
10 | 7 |
const contentRoutes: Routes = [ |
... | ... | |
12 | 9 |
path: '', |
13 | 10 |
component: ContentComponent, |
14 | 11 |
children: [ |
12 |
// { |
|
13 |
// path: 'events', |
|
14 |
// component: ContentEventsComponent, |
|
15 |
// }, |
|
16 |
// { |
|
17 |
// path: 'events/:name', |
|
18 |
// component: ContentEventsOfRepositoryComponent, |
|
19 |
// }, |
|
20 |
// { |
|
21 |
// path: 'events/:name/:topic', |
|
22 |
// component: ContentEventsOfRepoEventslistComponent, |
|
23 |
// }, |
|
15 | 24 |
{ |
16 |
path: 'events', |
|
17 |
component: ContentEventsComponent, |
|
18 |
}, |
|
19 |
{ |
|
20 |
path: 'events/:name', |
|
21 |
component: ContentEventsOfRepositoryComponent, |
|
22 |
}, |
|
23 |
{ |
|
24 |
path: 'events/:name/:topic', |
|
25 |
component: ContentEventsOfRepoEventslistComponent, |
|
26 |
}, |
|
27 |
{ |
|
28 | 25 |
path: 'notifications', |
29 | 26 |
component: ContentNotificationsComponent, |
30 | 27 |
}, |
Also available in: Unified diff
Second commit for the new layout provided by the UX team