Angular Signal Generators
    Preparing search index...

    Uses MutationObserver to observe changes to nodes passed to the signal.

    Either a signal/observable/function that returns Nodes or ElementRefs, or a value that is Node or ElementRef. If the source is a value then the signal will be writable.

    Options for the signal or the MutationObserver used to monitor changes.

    const el = document.getElementById('el1');
    const $obs = mutationSignal(el);
    effect(() => console.log($obs()[0]?.attributeName)); // will log 'data-node-value'
    el.setAttribute('data-node-value', 'hello there');