import { NgModule } from '@angular/core' ; import { Routes , RouterModule } from '@angular/router' ; const routes = [ { path : '' , pathMatch : 'full' , redirectTo : '/planning' } , { path : 'features-modules' , loadChildren : ( ) => import ( './features-modules/features-modules.module' ) . then ( m => m . FeaturesModulesModule ) } ] ; @ NgModule ( { imports : [ RouterModule . forRoot ( routes , { relativeLinkResolution : 'legacy' } ) ] , exports : [ RouterModule ] } ) export class AppRoutingModule { }