EMS/src/app/app.routes.ts

11 lines
493 B
TypeScript
Raw Normal View History

2025-01-09 01:24:21 +01:00
import { Routes } from '@angular/router';
import { DashboardComponent } from '@app/views/dashboard/dashboard.component';
2024-12-18 09:35:34 +01:00
2025-01-09 01:24:21 +01:00
import { EmployeeDetailComponent } from './views/employee-detail/employee-detail.component';
export const routes: Routes = [
{ path: '', component: DashboardComponent, title: 'Home' },
{ path: 'employee/new', component: EmployeeDetailComponent, title: 'New Employee' },
{ path: 'employee/:id', component: EmployeeDetailComponent, title: 'Edit Employee' }
];