fix(route): fix #2, add a default handler for non registered routes

This commit is contained in:
nixa 2016-06-03 00:00:13 +03:00
parent cba6578722
commit 86a8cb1cda

View file

@ -36,6 +36,13 @@ import {layoutPaths} from './theme/theme.constants';
component: Pages, component: Pages,
useAsDefault: true useAsDefault: true
}, },
// handle any non-registered route
// and simply redirects back to dashboard page
// you can specify any customer 404 page while it's not built in ito ng2-admin
{
path: '/**',
redirectTo: ['Pages']
}
]) ])
export class App { export class App {