Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { NgModule } from '@angular/core';
- import { RouterModule, PreloadAllModules } from '@angular/router';
- import {ActivateGuard} from './guard';
- import { ROUTES } from './app.routes';
- import { HomeComponent } from './home';
- import { NoContentComponent } from './no-content
- // Application wide providers
- const APP_PROVIDERS = [
- ActivateGuard
- ];
- @NgModule({
- declarations: [
- HomeComponent,
- NoContentComponent
- ],
- imports: [ // import Angular's modules
- RouterModule.forRoot(ROUTES, { useHash: true, preloadingStrategy: PreloadAllModules })
- ],
- providers: [ // expose our Services and Providers into Angular's dependency injection
- APP_PROVIDERS
- ]
- })
- export class AppModule {
- constructor() {}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement