Projekt

Obecné

Profil

« Předchozí | Další » 

Revize d24d1e39

Přidáno uživatelem Hung Hoang před téměř 6 roky(ů)

Re #7263 Implemented routing for dashboard and employee list

Zobrazit rozdíly:

frontend/src/app/app-routing.module.ts
1 1
import { NgModule } from '@angular/core';
2 2
import { Routes, RouterModule } from '@angular/router';
3
import {EmployeesListComponent} from './employees-list/employees-list.component';
4
import {DashboardComponent} from './dashboard/dashboard.component';
3 5

  
4
const routes: Routes = [];
6
const routes: Routes = [
7
  { path: 'employees', component: EmployeesListComponent },
8
  { path: 'dashboard', component: DashboardComponent },
9
  { path: '', redirectTo: '/dashboard', pathMatch: 'full' },
10
];
5 11

  
6 12
@NgModule({
7 13
  imports: [RouterModule.forRoot(routes)],

Také k dispozici: Unified diff