Skip to content
This repository was archived by the owner on Oct 1, 2018. It is now read-only.

Commit 49f5aaa

Browse files
preloading strategy to PreloadAllModules
1 parent 6402c1e commit 49f5aaa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/app.module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { NgModule } from '@angular/core';
33
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
44
import { MatToolbarModule, MatSidenavModule, MatIconModule, MatButtonModule, MatListModule } from '@angular/material';
55
import { RouterModule } from '@angular/router';
6-
6+
import { PreloadAllModules } from '@angular/router';
77
import { RXJS_DOC_ROUTES } from './app.routing';
88

99
import { AppComponent } from './app.component';
@@ -15,7 +15,7 @@ import { AppComponent } from './app.component';
1515
imports: [
1616
BrowserModule,
1717
BrowserAnimationsModule,
18-
RouterModule.forRoot(RXJS_DOC_ROUTES),
18+
RouterModule.forRoot(RXJS_DOC_ROUTES, { preloadingStrategy: PreloadAllModules }),
1919
MatToolbarModule,
2020
MatSidenavModule,
2121
MatIconModule,

0 commit comments

Comments
 (0)