Skip to content

Instantly share code, notes, and snippets.

@theoomoregbee
Created July 8, 2017 19:27
Show Gist options
  • Save theoomoregbee/0ab2a3c614fea7be893252bf24cf84c1 to your computer and use it in GitHub Desktop.
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
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