Interface AngularElementDefinition


@JsType(isNative=true, name="ng.AngularElementDefinition", namespace="<global>") public interface AngularElementDefinition
Runtime metadata returned after defining a standalone custom element.
  • Method Details

    • create

      @JsOverlay static AngularElementDefinition create()
    • getAngular

      @JsProperty Angular getAngular()
      AngularTS runtime instance that owns the element injector.
    • getElement

      @JsProperty Object getElement()
      Native custom element constructor registered with `customElements`.
    • getElementModule

      @JsProperty NgModule getElementModule()
      Application module that registered the element.
    • getInjector

      @JsProperty InjectorService<Object> getInjector()
      Injector used by all instances of this custom element definition.
    • getName

      @JsProperty String getName()
      Registered custom element tag name.
    • getNgModule

      @JsProperty NgModule getNgModule()
      Custom runtime `ng` module.
    • setAngular

      @JsProperty void setAngular(Angular angular)
      AngularTS runtime instance that owns the element injector.
    • setElement

      @JsProperty void setElement(Object element)
      Native custom element constructor registered with `customElements`.
    • setElementModule

      @JsProperty void setElementModule(NgModule elementModule)
      Application module that registered the element.
    • setInjector

      @JsProperty void setInjector(InjectorService<Object> injector)
      Injector used by all instances of this custom element definition.
    • setName

      @JsProperty void setName(String name)
      Registered custom element tag name.
    • setNgModule

      @JsProperty void setNgModule(NgModule ngModule)
      Custom runtime `ng` module.