import { RouterModule, Routes } from '@angular/router'; import { NgModule } from '@angular/core'; import { ContentComponent } from './content.component'; import { ContentNotificationsComponent } from './content-notifications.component'; import { ContentNotificationsOfSubscriptionComponent } from './content-notifications-of-subscription.component'; const contentRoutes: Routes = [ { path: '', component: ContentComponent, children: [ // { // path: 'events', // component: ContentEventsComponent, // }, // { // path: 'events/:name', // component: ContentEventsOfRepositoryComponent, // }, // { // path: 'events/:name/:topic', // component: ContentEventsOfRepoEventslistComponent, // }, { path: 'notifications', component: ContentNotificationsComponent, }, { path: 'notifications/:id', component: ContentNotificationsOfSubscriptionComponent, } ] } ]; @NgModule ({ imports: [RouterModule.forChild(contentRoutes)], exports: [RouterModule] }) export class ContentRouting {}