import { NgModule } from '@angular/core' ; import { Routes , RouterModule } from '@angular/router' ; import { SBRouteData } from '@modules/navigation/models' ; import { AuthModule } from './auth.module' ; import * as authContainers from './containers' ; import * as authGuards from './guards' ; export const ROUTES = [ { path : '' , pathMatch : 'full' , redirectTo : 'login' , } , { path : 'login' , canActivate : [ ] , component : authContainers . LoginComponent , data : { title : 'Pages Login - SB Admin Angular' , } as SBRouteData , } , { path : 'register' , canActivate : [ ] , component : authContainers . RegisterComponent , data : { title : 'Pages Register - SB Admin Angular' , } as SBRouteData , } , { path : 'forgot-password' , canActivate : [ ] , component : authContainers . ForgotPasswordComponent , data : { title : 'Pages Forgot Password - SB Admin Angular' , } as SBRouteData , } , ] ; @ NgModule ( { imports : [ AuthModule , RouterModule . forChild ( ROUTES ) ] , exports : [ RouterModule ] , } ) export class AuthRoutingModule { }