fromMutationObserver
Creates an observable sequence from a MutationObserver
. The MutationObserver
provides developers a way to react to changes in a DOM. This requires MutationObserver
to be supported in your browser/JavaScript runtime.
Arguments
target
(Node): The Node on which to obserave DOM mutations.options
(MutationObserverInit): AMutationObserverInit
object, specifies which DOM mutations should be reported.
Returns
(Observable): An observable sequence which contains mutations on the given DOM target.
Example
Last updated