Package org.angular.ts.ng
Interface DirectiveViewContext<TController,TRequired>
@JsType(isNative=true,
name="ng.DirectiveViewContext",
namespace="<global>")
public interface DirectiveViewContext<TController,TRequired>
Public AngularTS DirectiveViewContext 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 TypeMethodDescriptionController associated with the view.elemental2.dom.ElementPublic DirectiveViewContext.element member exposed by the AngularTS namespace contract.elemental2.dom.ElementgetHost()Native host element matched by the component or directive.Controllers resolved through the directive's `require` declaration.getScope()Scope that owns the generated DOM and reactive readers.Transclusion function, when transclusion is enabled.Registers cleanup and returns a cancellation function.voidsetController(TController controller) Controller associated with the view.voidsetElement(elemental2.dom.Element element) Public DirectiveViewContext.element member exposed by the AngularTS namespace contract.voidsetHost(elemental2.dom.Element host) Native host element matched by the component or directive.voidsetRequired(TRequired required) Controllers resolved through the directive's `require` declaration.voidScope that owns the generated DOM and reactive readers.voidsetTransclude(DirectiveViewContext.TranscludeCallback transclude) Transclusion function, when transclusion is enabled.
-
Method Details
-
getController
Controller associated with the view. -
getElement
@JsProperty elemental2.dom.Element getElement()Public DirectiveViewContext.element member exposed by the AngularTS namespace contract. -
getHost
@JsProperty elemental2.dom.Element getHost()Native host element matched by the component or directive. -
getRequired
Controllers resolved through the directive's `require` declaration. -
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
Controller associated with the view. -
setElement
@JsProperty void setElement(elemental2.dom.Element element) Public DirectiveViewContext.element member exposed by the AngularTS namespace contract. -
setHost
@JsProperty void setHost(elemental2.dom.Element host) Native host element matched by the component or directive. -
setRequired
Controllers resolved through the directive's `require` declaration. -
setScope
Scope that owns the generated DOM and reactive readers. -
setTransclude
Transclusion function, when transclusion is enabled.
-