Package org.angular.ts.ng
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 TypeMethodDescriptionbooleanDispatch a composed bubbling DOM event from the host.elemental2.dom.HTMLElementgetHost()Custom element host.Injector used by the AngularTS app that registered the element.getRoot()Render root used for template content.jsinterop.base.JsPropertyMap<Object> getScope()Scope owned by the custom element.Shadow root when `shadow` is enabled.voidsetHost(elemental2.dom.HTMLElement host) Custom element host.voidsetInjector(InjectorService<Object> injector) Injector used by the AngularTS app that registered the element.voidRender root used for template content.voidScope owned by the custom element.voidsetShadowRoot(Object shadowRoot) Shadow root when `shadow` is enabled.
-
Method Details
-
dispatch
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
Injector used by the AngularTS app that registered the element. -
getRoot
Render root used for template content. -
getScope
Scope owned by the custom element. -
getShadowRoot
Shadow root when `shadow` is enabled. -
setHost
@JsProperty void setHost(elemental2.dom.HTMLElement host) Custom element host. -
setInjector
Injector used by the AngularTS app that registered the element. -
setRoot
Render root used for template content. -
setScope
Scope owned by the custom element. -
setShadowRoot
Shadow root when `shadow` is enabled.
-