import { Routes , RouterModule } from '@angular/router' ; import { DashboardComponent } from '../components/index' ; import { AuthGuard , AdminLoadGuard , CategoriesResolver , TagsResolver } from 'shared-library/core/route-guards' ; export const routes = [ { path : '' , redirectTo : '/admin' , pathMatch : 'full' } , { path : 'dashboard' , component : DashboardComponent } , { path : 'admin' , loadChildren : ( ) => import ( '../admin/admin.module' ) . then ( m => m . AdminModule ) , canActivate : [ AuthGuard ] , canLoad : [ AdminLoadGuard ] } ] ;