1 |
37412123
|
Václav Jirák
|
import { NgModule } from '@angular/core';
|
2 |
|
|
import { Routes, RouterModule } from '@angular/router';
|
3 |
7c56b223
|
Hung Hoang
|
import {EmployeesListComponent} from './employees/employees-list.component';
|
4 |
0d1b0550
|
Václav Jirák
|
import {DashboardComponent} from './dashboard/dashboard.component';
|
5 |
4bd9d9f6
|
Hung Hoang
|
import {PageNotFoundComponent} from './page-not-found/page-not-found.component';
|
6 |
37412123
|
Václav Jirák
|
|
7 |
0d1b0550
|
Václav Jirák
|
const routes: Routes = [
|
8 |
|
|
{ path: 'employees', component: EmployeesListComponent },
|
9 |
|
|
{ path: 'dashboard', component: DashboardComponent },
|
10 |
|
|
{ path: '', redirectTo: '/dashboard', pathMatch: 'full' },
|
11 |
4bd9d9f6
|
Hung Hoang
|
{ path: '**', component: PageNotFoundComponent }
|
12 |
0d1b0550
|
Václav Jirák
|
];
|
13 |
37412123
|
Václav Jirák
|
|
14 |
|
|
@NgModule({
|
15 |
|
|
imports: [RouterModule.forRoot(routes)],
|
16 |
|
|
exports: [RouterModule]
|
17 |
|
|
})
|
18 |
|
|
export class AppRoutingModule { }
|