feat(notfound): add NotFound page (#1672)

This commit is contained in:
Gabriel 2018-05-07 05:07:14 -04:00 committed by Dmitry Nehaychik
parent 0ba99f2c6b
commit fa3cdf731b
9 changed files with 120 additions and 0 deletions

View file

@ -3,6 +3,7 @@ import { NgModule } from '@angular/core';
import { PagesComponent } from './pages.component';
import { DashboardComponent } from './dashboard/dashboard.component';
import { NotFoundComponent } from './miscellaneous/not-found/not-found.component';
const routes: Routes = [{
path: '',
@ -31,10 +32,16 @@ const routes: Routes = [{
}, {
path: 'tables',
loadChildren: './tables/tables.module#TablesModule',
}, {
path: 'miscellaneous',
loadChildren: './miscellaneous/miscellaneous.module#MiscellaneousModule',
}, {
path: '',
redirectTo: 'dashboard',
pathMatch: 'full',
}, {
path: '**',
component: NotFoundComponent,
}],
}];