license import { NgModule } from '@angular/core' ; import { RouterModule , Routes } from '@angular/router' ; import { NbAuthComponent } from '@nebular/auth' ; import { LoginComponent } from './login/login.component' ; import { LogoutComponent } from './logout/logout.component' ; export const routes = [ { path : '' , component : NbAuthComponent , children : [ { path : 'login' , component : LoginComponent , } , { path : 'logout' , component : LogoutComponent , } , ] , } , ] ; @ NgModule ( { imports : [ RouterModule . forChild ( routes ) ] , exports : [ RouterModule ] , } ) export class AuthRoutingModule { }