aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/app/app-routing.module.ts
blob: 2ee3cf97436b00e45f3f489a07f27472001d3f56 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                        
                                                      
                                                   

                        
                  
                                                     
   
 
           

                                                    
                                                    
      

                              

                                
import { NgModule } from '@angular/core'
import { RouterModule, Routes } from '@angular/router'

import { PreloadSelectedModulesList } from './core'

const routes: Routes = [
  {
    path: 'admin',
    loadChildren: './+admin/admin.module#AdminModule'
  }
]

@NgModule({
  imports: [
    RouterModule.forRoot(routes, {
      useHash: Boolean(history.pushState) === false,
      preloadingStrategy: PreloadSelectedModulesList
    })
  ],
  providers: [
    PreloadSelectedModulesList
  ],
  exports: [ RouterModule ]
})
export class AppRoutingModule {}