AngularTS
    Preparing search index...

    Interface ProgrammaticViewContext<TController, TRequired, TScope, TElement>

    Runtime context passed to a programmatic component or directive view.

    interface ProgrammaticViewContext<
        TController = unknown,
        TRequired = undefined,
        TScope extends ng.Scope = ng.Scope,
        TElement extends Element = Element,
    > {
        controller: TController;
        host: TElement;
        onDestroy: (cleanup: () => void) => () => void;
        required: TRequired;
        scope: TScope;
        transclude: TranscludeFn | undefined;
    }

    Type Parameters

    • TController = unknown
    • TRequired = undefined
    • TScope extends ng.Scope = ng.Scope
    • TElement extends Element = Element
    Index

    Properties

    controller: TController

    Controller associated with the view.

    host: TElement

    Native host element matched by the component or directive.

    onDestroy: (cleanup: () => void) => () => void

    Registers cleanup and returns a cancellation function.

    required: TRequired

    Controllers resolved through a directive's require declaration.

    scope: TScope

    Scope that owns the generated DOM and reactive readers.

    transclude: TranscludeFn | undefined

    Transclusion function, when transclusion is enabled.