Optional injector reference if created outside injector context and MutationObserver options. If no MutationObserver options are passed then only all attributes are observed.

interface MutationSignalOptions {
    attributeFilter?: string[];
    attributeOldValue?: boolean;
    attributes?: boolean;
    characterData?: boolean;
    characterDataOldValue?: boolean;
    childList?: boolean;
    debugName?: string;
    injector?: Injector;
    subtree?: boolean;
}

Hierarchy

  • MutationObserverInit
  • Pick<CreateSignalOptions<unknown>, "debugName">
    • MutationSignalOptions

Properties

attributeFilter?: string[]

Set to a list of attribute local names (without namespace) if not all attribute mutations need to be observed and attributes is true or omitted.

attributeOldValue?: boolean

Set to true if attributes is true or omitted and target's attribute value before the mutation needs to be recorded.

attributes?: boolean

Set to true if mutations to target's attributes are to be observed. Can be omitted if attributeOldValue or attributeFilter is specified.

characterData?: boolean

Set to true if mutations to target's data are to be observed. Can be omitted if characterDataOldValue is specified.

characterDataOldValue?: boolean

Set to true if characterData is set to true or omitted and target's data before the mutation needs to be recorded.

childList?: boolean

Set to true if mutations to target's children are to be observed.

debugName?: string

A debug name for the signal. Used in Angular DevTools to identify the signal.

injector?: Injector

This signal must either be created in an injection context or passed an injector.

subtree?: boolean

Set to true if mutations to not just target, but also target's descendants are to be observed.