import { NgModule } from '@angular/core' ; import { RouterModule , Routes } from '@angular/router' ; const routes = [ { path : '' , loadChildren : 'app/features/features.module#FeaturesModule' , } , { path : '**' , redirectTo : '/' , } , ] ; @ NgModule ( { imports : [ RouterModule . forRoot ( routes ) ] , } ) export class AppRoutingModule { }