AngularTS
    Preparing search index...

    Interface Directive

    Defines the structure of an AngularTS directive.

    interface Directive {
        $$addStateInfo?: (...args: any[]) => any;
        bindToController?: boolean | Record<string, string>;
        compile?: DirectiveCompileFn;
        controller?: any;
        controllerAs?: string;
        link?: DirectivePrePost | DirectiveLinkFn;
        name?: string;
        priority?: number;
        replace?: boolean;
        require?: string | string[] | Record<string, string>;
        restrict?: string;
        scope?: boolean | Record<string, string>;
        template?: string | ((element: Element, attrs: Attributes) => string);
        templateNamespace?: string;
        templateUrl?: string | ((element: Element, attrs: Attributes) => string);
        terminal?: boolean;
        transclude?: boolean | Record<string, string> | "element";
    }
    Index

    Properties

    $$addStateInfo?: (...args: any[]) => any

    Internal hook for directive compilation state

    bindToController?: boolean | Record<string, string>

    Whether to bind scope to controller

    Compile function for the directive

    controller?: any

    Controller constructor or injectable string name

    controllerAs?: string

    Alias name for the controller in templates

    Link function(s) executed during linking

    name?: string

    Optional name (usually inferred)

    priority?: number

    Priority of the directive

    replace?: boolean

    Replaces the element with the template if true

    require?: string | string[] | Record<string, string>

    Required controllers for the directive

    restrict?: string

    Restrict option: 'A' and/or 'E'. Defaults to 'EA'

    scope?: boolean | Record<string, string>

    Scope configuration (true, false, or object for isolate scope)

    template?: string | ((element: Element, attrs: Attributes) => string)

    Inline template

    templateNamespace?: string

    Template namespace (e.g., SVG, HTML)

    templateUrl?: string | ((element: Element, attrs: Attributes) => string)

    Template URL for loading from server

    terminal?: boolean

    Stops further directive processing if true

    transclude?: boolean | Record<string, string> | "element"

    Enables transclusion or configures named slots