import { NgModule } from '@angular/core' ; import { RouterModule , Routes } from '@angular/router' ; import { PlanningComponent } from './planning.component' ; const routes = [ { path : 'planning' , component : PlanningComponent } ] ; @ NgModule ( { imports : [ RouterModule . forChild ( routes ) ] , exports : [ RouterModule ] } ) export class PlanningRoutingModule { static components = [ PlanningComponent ] ; }