Interface ProgrammaticViewContext<TController,TRequired,TScope,TElement>


@JsType(isNative=true, name="ng.ProgrammaticViewContext", namespace="<global>") public interface ProgrammaticViewContext<TController,TRequired,TScope,TElement>
Public AngularTS ProgrammaticViewContext contract exposed through the global ng namespace for Closure-annotated applications.
  • Method Details

    • getController

      @JsProperty TController getController()
      Controller associated with the view.
    • getHost

      @JsProperty TElement getHost()
      Native host element matched by the component or directive.
    • getRequired

      @JsProperty TRequired getRequired()
      Controllers resolved through a directive's require declaration.
    • getScope

      @JsProperty TScope getScope()
      Scope that owns the generated DOM and reactive readers.
    • getTransclude

      @JsProperty ProgrammaticViewContext.TranscludeCallback getTransclude()
      Transclusion function, when transclusion is enabled.
    • onDestroy

      Registers cleanup and returns a cancellation function.
      Parameters:
      cleanup - Value supplied for the cleanup parameter.
      Returns:
      Method result.
    • setController

      @JsProperty void setController(TController controller)
      Controller associated with the view.
    • setHost

      @JsProperty void setHost(TElement host)
      Native host element matched by the component or directive.
    • setRequired

      @JsProperty void setRequired(TRequired required)
      Controllers resolved through a directive's require declaration.
    • setScope

      @JsProperty void setScope(TScope scope)
      Scope that owns the generated DOM and reactive readers.
    • setTransclude

      @JsProperty void setTransclude(ProgrammaticViewContext.TranscludeCallback transclude)
      Transclusion function, when transclusion is enabled.