Package org.angular.ts.ng
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.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceTypeScript callback contract for this method.static interfaceTypeScript callback contract for this method.static interfaceTypeScript callback contract for this property. -
Method Summary
Modifier and TypeMethodDescriptionComponent controller after bindings and `onInit` have run.elemental2.dom.HTMLElementPublic ComponentViewContext.element member exposed by the AngularTS namespace contract.elemental2.dom.HTMLElementgetHost()Native host element matched by the component or directive.getScope()Scope that owns the generated DOM and reactive readers.Transclusion function, when transclusion is enabled.Registers cleanup and returns a cancellation function.voidsetController(Controller controller) Component controller after bindings and `onInit` have run.voidsetElement(elemental2.dom.HTMLElement element) Public ComponentViewContext.element member exposed by the AngularTS namespace contract.voidsetHost(elemental2.dom.HTMLElement host) Native host element matched by the component or directive.voidScope that owns the generated DOM and reactive readers.voidsetTransclude(ComponentViewContext.TranscludeCallback transclude) Transclusion function, when transclusion is enabled.
-
Method Details
-
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
Scope that owns the generated DOM and reactive readers. -
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
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
Scope that owns the generated DOM and reactive readers. -
setTransclude
Transclusion function, when transclusion is enabled.
-