Answer the question
In order to leave comments, you need to log in
Why is it calling the Observer method again?
Receive data from the server$events:
this.events$ = this.eventsService.get();
this.filteredEvents$ = this.createFilter(this.filter$, this.events$).pipe(
takeUntil(this.onDestroy$),
catchError((error) => {
return Observable.throw(error);
})
);
this.filteredEvents$
checkAll()
is re-executed :this.eventsService.get();
public checkAll(): void {
this.filteredEvents$ = this.events$.pipe(
map((events: IEvent[]) =>
events.filter(
(event: IEvent) => (event.checked_export = !event.checked_export)
)
)
);
}
filteredEvents$ | async
this.filteredEvents$ = this.events$;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question