Created
July 8, 2017 19:27
-
-
Save theoomoregbee/0ab2a3c614fea7be893252bf24cf84c1 to your computer and use it in GitHub Desktop.
EVERYTHING YOU NEED TO KNOW ON SECURING YOUR ANGULAR 2+ SPA --> Updated route on module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {NgModule} from '@angular/core'; | |
import {CommonModule} from '@angular/common'; | |
import {DashboardComponent} from './dashboard/dashboard.component'; | |
import {HomeComponent} from './home/home.component'; | |
import {SettingsComponent} from './settings/settings.component'; | |
import {AdminComponent} from './admin/admin.component'; | |
import {RouterModule} from "@angular/router"; | |
import {dashboardRoutes} from "./dashboard.routes"; | |
@NgModule({ | |
imports: [ | |
CommonModule, | |
RouterModule.forChild(dashboardRoutes) | |
], | |
declarations: [DashboardComponent, HomeComponent, SettingsComponent, AdminComponent], | |
exports: [DashboardComponent] | |
}) | |
export class DashboardModule { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment