import { NgModule } from '@angular/core' ; import { RouterModule , Routes } from '@angular/router' ; import { AuthComponent } from './containers/auth/auth.component' ; import { AuthGuard } from './guards/auth.guard' ; const routes = [ { path : '' , component : AuthComponent , canActivate : [ AuthGuard ] , children : [ { path : 'login' , loadChildren : ( ) => import ( '@pimp-my-pr/pmp-web/auth/login-feature' ) . then ( m => m . PmpWebAuthLoginFeatureModule ) } ] } ] ; @ NgModule ( { imports : [ RouterModule . forChild ( routes ) ] , exports : [ RouterModule ] } ) export class PmpWebAuthShellRoutingModule { }