app-routing.module.ts 679B

123456789101112131415161718192021222324
  1. import { NgModule } from '@angular/core';
  2. import { RouterModule } from '@angular/router';
  3. import { errorRoute, navbarRoute } from './layouts';
  4. import { DEBUG_INFO_ENABLED } from 'app/app.constants';
  5. const LAYOUT_ROUTES = [navbarRoute, ...errorRoute];
  6. @NgModule({
  7. imports: [
  8. RouterModule.forRoot(
  9. [
  10. ...LAYOUT_ROUTES,
  11. {
  12. path: 'admin',
  13. loadChildren: './admin/admin.module#ZipConnectAdminModule'
  14. }
  15. ],
  16. { useHash: true, enableTracing: DEBUG_INFO_ENABLED }
  17. )
  18. ],
  19. exports: [RouterModule]
  20. })
  21. export class ZipConnectAppRoutingModule {}