Extract snackbar error message implementation to service #43
@ -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[]> {
|
||||
|
Reference in New Issue
Block a user