Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Last active December 10, 2016 16:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthieu-D/4ede86e9a685e45c09e278aaf4469f5e to your computer and use it in GitHub Desktop.
Save matthieu-D/4ede86e9a685e45c09e278aaf4469f5e to your computer and use it in GitHub Desktop.
import { RouterModule, PreloadAllModules } from '@angular/router';
import { ROUTES } from './app.routes';
import { HomeComponent } from './home';
import { NoContentComponent } from './no-content'
@NgModule({
declarations: [
HomeComponent,
NoContentComponent
],
imports: [
RouterModule.forRoot(ROUTES, { useHash: true, preloadingStrategy: PreloadAllModules })
]
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment