Answer the question
In order to leave comments, you need to log in
Why is the rxjs stream not changing?
Available:
public events$: BehaviorSubject<IEvent[]> = new BehaviorSubject<IEvent[]>([]);
this.load().subscribe((response) => {
this.events$.next(response);
});
public checkAll() {
this.events$.pipe(
map((events: IEvent[]) => {
return events.map((event: IEvent) => {
event.checked_export = !event.checked_export;
return event;
});
})
);
}
this.events$ = this.events$.pipe()...
or forward the mapped object:this.events$.next(mapped)
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