1
|
import { NgModule } from '@angular/core';
|
2
|
import { Routes, RouterModule } from '@angular/router';
|
3
|
import {EmployeesListComponent} from './employees/employees-list.component';
|
4
|
import {DashboardComponent} from './dashboard/dashboard.component';
|
5
|
|
6
|
const routes: Routes = [
|
7
|
{ path: 'employees', component: EmployeesListComponent },
|
8
|
{ path: 'dashboard', component: DashboardComponent },
|
9
|
{ path: '', redirectTo: '/dashboard', pathMatch: 'full' },
|
10
|
];
|
11
|
|
12
|
@NgModule({
|
13
|
imports: [RouterModule.forRoot(routes)],
|
14
|
exports: [RouterModule]
|
15
|
})
|
16
|
export class AppRoutingModule { }
|