import { RouterModule } from "@angular/router" ; import { ModuleWithProviders } from "@angular/core" ; import { AboutComponent } from "./about.component" ; export const routing = RouterModule . forChild ( [ { path : "about" , component : AboutComponent } ] ) ;