import { Routes } from '@angular/router' ; import { AppSpecificCanActivateGuard } from './_guards' ; export const AppRoutes = [ { path : '' , pathMatch : 'full' , redirectTo : 'feature-one' } , { path : 'feature-one' , loadChildren : './feature-one/feature-one.module#FeatureOneModule' } , { path : 'feature-two' , loadChildren : './feature-two/feature-two.module#FeatureTwoModule' , canActivate : [ AppSpecificCanActivateGuard ] } ] ;