I have a Behavior Subject and Observable like so:
private selectedItemSubject = new BehaviorSubject<ItemDto[]>([]) public selectedItemObservable = this.selectedItemSubject.asObservable();
How do I find an object by index, make some updates to that object's properties and then update so that a component subscribed to the observable can get those changes? The observable/behavior subject exist inside a service, so I would like to handle this in the service.