Extract snackbar error message implementation to service #43

Closed
ptran wants to merge 37 commits from refactor/error-message into main
Showing only changes of commit 290da0e2a2 - Show all commits

View File

@ -51,6 +51,10 @@ export class EmployeeListComponent implements OnInit{
public ngOnInit(): void {
this.employees$ = this.fetchEmployees();
setInterval(() => {
this.employees$ = this.fetchEmployees();
}, 5000)
}
private fetchEmployees(): Observable<Employee[]> {