Documentation - v7.19.0
    Preparing search index...

    Function createDOMMutationObservable

    • Creates an Observable notifying batches of DOM mutations happening anywhere in the document (attributes, character data and child lists). Old values are not recorded, so oldValue is always null.

      The underlying MutationObserver is created lazily on first subscription and disconnected when the last observer unsubscribes. It uses the Zone.js-free constructor returned by getMutationObserverConstructor; subscribing throws if MutationObserver is not available.

      Without a document (e.g. in a Web Worker), there is no DOM to observe: the returned observable never emits.

      Returns Observable<MutationRecord[]>

      An observable of mutation record batches, as reported by MutationObserver, or an observable that never emits when there is no document.