Last active
July 29, 2018 13:56
-
-
Save theoomoregbee/cfbdb03714bd8a804067189b320ddb52 to your computer and use it in GitHub Desktop.
app routes for route guard post
This file contains hidden or 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 { 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