Skip to content
Permalink
Browse files
added route for center on the navbar
  • Loading branch information
pembemiriam committed Sep 6, 2018
1 parent f01ddc1 commit 549dd612869a9d9d6ce8699cf3aa6b459d787685
Showing 2 changed files with 3 additions and 3 deletions.
@@ -28,7 +28,7 @@
<th>Status</th>
<th>Office</th>
</tr>
<tr *ngFor = "let data of DataArray">
<tr *ngFor = "let data of DataArray" (onActionCellClick)="rowSelect($event)">
<td style="text-align: center; vertical-align: middle;">{{data.name}}</td>
<td style="text-align: center; vertical-align: middle;">{{data.accountNo}}</td>
<td style="text-align: center; vertical-align: middle;">{{data.id}}</td>
@@ -78,9 +78,9 @@ export class CenterComponent implements OnInit {
this.searchTerm = searchTerm;
this.fetchEmployees();
}

rowSelect(row: Employee): void {
this.router.navigate(['/detail']);
this.router.navigate(['detail', row.identifier], { relativeTo: this.route });
}

fetchEmployees(fetchRequest?: FetchRequest) {

0 comments on commit 549dd61

Please sign in to comment.