Angular Modernizer
    Preparing search index...

    Interface MagicStringSelectorConfig

    Configuration for the angular:magic-string-selector rule.

    Every property is optional to support partial overrides.

    interface MagicStringSelectorConfig {
        selectorPropertyNames: string[];
        targetMethodPatterns: string[];
    }
    Index

    Properties

    selectorPropertyNames: string[]

    Property names that count as a selector when a property access is the first argument (selector in getComponentBySelector(this.config.selector)); other property accesses are not reported. Unset: every property access is reported.

    ['selector', 'componentSelector']
    
    targetMethodPatterns: string[]

    Method name patterns (as strings) whose arguments are inspected for magic string selectors.

    ['querySelector', 'querySelectorAll', 'closest']