add employee details
Reviewed-on: #27 Reviewed-by: Get in my car i have candy <huydw@proton.me>
This commit is contained in:
@ -19,6 +19,7 @@ import {DeleteComponent} from "../delete/delete.component";
|
||||
import EmployeeApiService from "../../services/employee-api.service";
|
||||
import {CreateComponent} from "../create/create.component";
|
||||
import {EditComponent} from "../edit/edit.component";
|
||||
import {DetailsComponent} from "../details/details.component";
|
||||
|
||||
@Component({
|
||||
selector: 'app-employee-list',
|
||||
@ -95,4 +96,8 @@ export class TableComponent implements OnInit{
|
||||
this.employees$ = this.fetchEmployees();
|
||||
});
|
||||
}
|
||||
|
||||
protected openDetailModal(employee: Employee) {
|
||||
this.matDialog.open(DetailsComponent, {data: employee});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user