N
N
Nikita2018-02-08 20:16:55
JavaScript
Nikita, 2018-02-08 20:16:55

How to work with arrays with RxJS?

There is an array in a reactive wrapper (Observable? Subject?...?), a listener is subscribed to the wrapper.
How to change/delete/insert array elements so that the listener receives all changes after subscribing?
Need a sample code, you can without explanation. Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Kositsyn, 2018-02-09
@alex_keysi

Can use Proxy object? could not imagine such a situation. Tipo there is a handler for changing an object, which, when it changes, receives a change as a parameter?
If your array is DOM elements, then you can use MutationObserver.
You can also use this
solution

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question