Siema mam kod:
ngOnInit(): void {
this.getEmployees();
this.employeesService
.reloadEmployees()
.subscribe(() => this.getEmployees());
this.employeesService.searchValue$
.subscribe(value => this.employeesService.searchEmployees(value)
.subscribe(el => this.allEmployees = el));
}
Da sie to jakos uproscic? Wydaje mi sie ze te dwa subscribe nie wygladaja elegancko, pozdrawiam!