Interface WebComponentContext<T>


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

    Modifier and Type
    Method
    Description
    boolean
    dispatch(String type, Object detail, Object init)
    Dispatch a composed bubbling DOM event from the host.
    elemental2.dom.HTMLElement
    Custom element host.
    Injector used by the AngularTS app that registered the element.
    Render root used for template content.
    jsinterop.base.JsPropertyMap<Object>
    Scope owned by the custom element.
    Shadow root when `shadow` is enabled.
    void
    setHost(elemental2.dom.HTMLElement host)
    Custom element host.
    void
    Injector used by the AngularTS app that registered the element.
    void
    Render root used for template content.
    void
    setScope(jsinterop.base.JsPropertyMap<Object> scope)
    Scope owned by the custom element.
    void
    setShadowRoot(Object shadowRoot)
    Shadow root when `shadow` is enabled.
  • Method Details

    • dispatch

      boolean dispatch(String type, Object detail, Object init)
      Dispatch a composed bubbling DOM event from the host.
      Parameters:
      type - Value supplied for the type parameter.
      detail - Value supplied for the detail parameter.
      init - Value supplied for the init parameter.
      Returns:
      Method result.
    • getHost

      @JsProperty elemental2.dom.HTMLElement getHost()
      Custom element host.
    • getInjector

      @JsProperty InjectorService<Object> getInjector()
      Injector used by the AngularTS app that registered the element.
    • getRoot

      @JsProperty Object getRoot()
      Render root used for template content.
    • getScope

      @JsProperty jsinterop.base.JsPropertyMap<Object> getScope()
      Scope owned by the custom element.
    • getShadowRoot

      @JsProperty Object getShadowRoot()
      Shadow root when `shadow` is enabled.
    • setHost

      @JsProperty void setHost(elemental2.dom.HTMLElement host)
      Custom element host.
    • setInjector

      @JsProperty void setInjector(InjectorService<Object> injector)
      Injector used by the AngularTS app that registered the element.
    • setRoot

      @JsProperty void setRoot(Object root)
      Render root used for template content.
    • setScope

      @JsProperty void setScope(jsinterop.base.JsPropertyMap<Object> scope)
      Scope owned by the custom element.
    • setShadowRoot

      @JsProperty void setShadowRoot(Object shadowRoot)
      Shadow root when `shadow` is enabled.