import { NgModule } from '@angular/core' ; import { Routes , RouterModule } from '@angular/router' ; import { SBRouteData } from '@modules/navigation/models' ; import { DashboardModule } from './dashboard.module' ; import * as dashboardContainers from './containers' ; import * as dashboardGuards from './guards' ; export const ROUTES = [ { path : '' , data : { title : 'Dashboard - SB Admin Angular' , breadcrumbs : [ { text : 'Dashboard' , active : true , } , ] , } as SBRouteData , canActivate : [ ] , component : dashboardContainers . DashboardComponent , } , { path : 'static' , data : { title : 'Dashboard Static - SB Admin Angular' , breadcrumbs : [ { text : 'Dashboard' , link : '/dashboard' , } , { text : 'Static' , active : true , } , ] , } as SBRouteData , canActivate : [ ] , component : dashboardContainers . StaticComponent , } , { path : 'light' , data : { title : 'Dashboard Light - SB Admin Angular' , breadcrumbs : [ { text : 'Dashboard' , link : '/dashboard' , } , { text : 'Light' , active : true , } , ] , } as SBRouteData , canActivate : [ ] , component : dashboardContainers . LightComponent , } , ] ; @ NgModule ( { imports : [ DashboardModule , RouterModule . forChild ( ROUTES ) ] , exports : [ RouterModule ] , } ) export class DashboardRoutingModule { }