How to watch object changes with rxjs 5

后端 未结 3 2213
孤街浪徒
孤街浪徒 2021-02-08 23:41

I would like to watch over an object, so all the subscribers will be informed for any changes of it.

I saw it already been asked before, yet the answer is irrelevant si

3条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-09 00:07

    You need to use Behavior Subject . https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/subjects/behaviorsubject.md

提交回复
热议问题