Interface ComponentViewContext


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

    • getController

      @JsProperty Controller getController()
      Component controller after bindings and `onInit` have run.
    • getElement

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

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

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

      @JsProperty ComponentViewContext.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(Controller controller)
      Component controller after bindings and `onInit` have run.
    • setElement

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

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

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

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