Skip to content

Instantly share code, notes, and snippets.

@theoomoregbee
Last active July 8, 2017 07:58
Show Gist options
  • Save theoomoregbee/e1de9886e0ff763085b119a27d2e01bb to your computer and use it in GitHub Desktop.
Save theoomoregbee/e1de9886e0ff763085b119a27d2e01bb to your computer and use it in GitHub Desktop.
EVERYTHING YOU NEED TO KNOW ON SECURING YOUR ANGULAR 2+ SPA--> router created
import { PageNotFoundComponent } from './page-not-found/page-not-found.component';
import { LoginComponent } from './login/login.component';
import {Routes} from '@angular/router';
export const APP_ROUTES: Routes = [
{ path: 'login', component: LoginComponent },
{ path: '**', component: PageNotFoundComponent }
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment