Projekt

Obecné

Profil

Stáhnout (573 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1 37412123 Václav Jirák
import { NgModule } from '@angular/core';
2
import { Routes, RouterModule } from '@angular/router';
3 d24d1e39 Hung Hoang
import {EmployeesListComponent} from './employees-list/employees-list.component';
4
import {DashboardComponent} from './dashboard/dashboard.component';
5 37412123 Václav Jirák
6 d24d1e39 Hung Hoang
const routes: Routes = [
7
  { path: 'employees', component: EmployeesListComponent },
8
  { path: 'dashboard', component: DashboardComponent },
9
  { path: '', redirectTo: '/dashboard', pathMatch: 'full' },
10
];
11 37412123 Václav Jirák
12
@NgModule({
13
  imports: [RouterModule.forRoot(routes)],
14
  exports: [RouterModule]
15
})
16
export class AppRoutingModule { }