Revize a923ada8
Přidáno uživatelem Hung Hoang před téměř 6 roky(ů)
- ID a923ada80b798a75f8b722f59a01ef3f35603416
- Rodič 1d169f6d
webapp/src/app/app-routing.module.ts | ||
---|---|---|
2 | 2 |
import { Routes, RouterModule } from '@angular/router'; |
3 | 3 |
import {EmployeesListComponent} from './employees/employees-list.component'; |
4 | 4 |
import {DashboardComponent} from './dashboard/dashboard.component'; |
5 |
import {PageNotFoundComponent} from './page-not-found/page-not-found.component'; |
|
5 | 6 |
|
6 | 7 |
const routes: Routes = [ |
7 | 8 |
{ path: 'employees', component: EmployeesListComponent }, |
8 | 9 |
{ path: 'dashboard', component: DashboardComponent }, |
9 | 10 |
{ path: '', redirectTo: '/dashboard', pathMatch: 'full' }, |
11 |
{ path: '**', component: PageNotFoundComponent } |
|
10 | 12 |
]; |
11 | 13 |
|
12 | 14 |
@NgModule({ |
Také k dispozici: Unified diff
Re#7528 Menu items are highlighted with correct default, added 404 page