mirror of
https://github.com/samnyan/aqua-viewer.git
synced 2026-03-21 17:24:53 -05:00
[general] Preload all modules.
This commit is contained in:
parent
3b6aff4b57
commit
e6c64fdd31
|
|
@ -1,5 +1,5 @@
|
|||
import {NgModule} from '@angular/core';
|
||||
import {RouterModule, Routes} from '@angular/router';
|
||||
import {PreloadAllModules, RouterModule, Routes} from '@angular/router';
|
||||
import {LoginComponent} from './login/login.component';
|
||||
import {DashboardComponent} from './dashboard/dashboard.component';
|
||||
import {AuthGuardService} from './auth/auth-guard.service';
|
||||
|
|
@ -22,7 +22,7 @@ const routes: Routes = [
|
|||
];
|
||||
|
||||
@NgModule({
|
||||
imports: [RouterModule.forRoot(routes)],
|
||||
imports: [RouterModule.forRoot(routes, {preloadingStrategy: PreloadAllModules})],
|
||||
exports: [RouterModule]
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user