Skip to content

Instantly share code, notes, and snippets.

@theoomoregbee
Last active July 29, 2018 13:56
Show Gist options
  • Select an option

  • Save theoomoregbee/cfbdb03714bd8a804067189b320ddb52 to your computer and use it in GitHub Desktop.

Select an option

Save theoomoregbee/cfbdb03714bd8a804067189b320ddb52 to your computer and use it in GitHub Desktop.
app routes for route guard post
import { Routes } from '@angular/router';
import { LoginComponent } from './login/login.component';
import { PageNotFoundComponent } from './page-not-found/page-not-found.component';
export const APP_ROUTES: Routes = [
{ path: 'login', component: LoginComponent },
{ path: '', redirectTo: 'dashboard', pathMatch: 'full' },
{ path: '**', component: PageNotFoundComponent }
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment