MutationObserverService

Wraps the MutationObserver API with an Observable-based interface. Detects DOM mutations such as child additions, attribute changes, and text content modifications.

API Variant
TypeScriptexample.ts
import { MutationObserverService } from '@angular-helpers/browser-web-apis'

# Methods

MethodSignatureReturnsDescription
observeobserve(target: Node, options?: MutationObserverOptions): Observable<MutationRecord[]>Observable<MutationRecord[]>Public method observe.
LCP N/A
CLS N/A
INP N/A