import { NgModule } from '@angular/core' ; import { Routes , RouterModule } from '@angular/router' ; import { AboutComponent } from './about.component' ; const routes = [ { path : 'about' , component : AboutComponent } , ] ; @ NgModule ( { imports : [ RouterModule . forChild ( routes ) ] , exports : [ RouterModule ] , } ) export class AboutRoutingModule { } export const routedComponents = [ AboutComponent ] ;