import { RouterModule , Routes } from '@angular/router' ; import { ModuleWithProviders } from '@angular/core' ; export const ROUTES = [ { path : '' , children : [ { path : '' , loadChildren : ( ) => import ( './lazy/module' ) . then ( m => m . LazyModule ) } , { path : '**' , redirectTo : '' } ] } ] ; export const Routing = RouterModule . forRoot ( ROUTES , { relativeLinkResolution : 'legacy' } ) ;