fix(router): redirect not found routes to dashboard

This commit is contained in:
nixa 2016-07-07 16:56:07 +03:00
parent 24de0070fa
commit 54f5f9a041
3 changed files with 7 additions and 16 deletions

View file

@ -1,12 +1,8 @@
import {RouterConfig} from '@angular/router';
import {Login} from './login.component';
//noinspection TypeScriptValidateTypes
export const LoginRoutes: RouterConfig = [
{
path: '',
redirectTo: '/login',
terminal: true
},
{
path: 'login',
component: Login

View file

@ -1,12 +1,8 @@
import {RouterConfig} from '@angular/router';
import {Register} from './register.component';
//noinspection TypeScriptValidateTypes
export const RegisterRoutes: RouterConfig = [
{
path: '',
redirectTo: '/register',
terminal: true
},
{
path: 'register',
component: Register