Interface DirectiveViewContext<TController,TRequired>


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

    • getController

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

      @JsProperty elemental2.dom.Element getElement()
      Public DirectiveViewContext.element member exposed by the AngularTS namespace contract.
    • getHost

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

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

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

      @JsProperty DirectiveViewContext.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.
    • setElement

      @JsProperty void setElement(elemental2.dom.Element element)
      Public DirectiveViewContext.element member exposed by the AngularTS namespace contract.
    • setHost

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

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

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

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