Package org.angular.ts.ng
Interface ProgrammaticViewContext<TController,TRequired,TScope,TElement>
@JsType(isNative=true,
name="ng.ProgrammaticViewContext",
namespace="<global>")
public interface ProgrammaticViewContext<TController,TRequired,TScope,TElement>
Public AngularTS ProgrammaticViewContext 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.getHost()Native host element matched by the component or directive.Controllers resolved through a 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.voidNative host element matched by the component or directive.voidsetRequired(TRequired required) Controllers resolved through a directive's require declaration.voidScope that owns the generated DOM and reactive readers.voidTransclusion function, when transclusion is enabled.
-
Method Details
-
getController
Controller associated with the view. -
getHost
Native host element matched by the component or directive. -
getRequired
Controllers resolved through a directive's require declaration. -
getScope
Scope that owns the generated DOM and reactive readers. -
getTransclude
Transclusion function, when transclusion is enabled. -
onDestroy
ProgrammaticViewContext.Subscription onDestroy(ProgrammaticViewContext.OnDestroyCleanupCallback cleanup) Registers cleanup and returns a cancellation function.- Parameters:
cleanup- Value supplied for the cleanup parameter.- Returns:
- Method result.
-
setController
Controller associated with the view. -
setHost
Native host element matched by the component or directive. -
setRequired
Controllers resolved through a directive's require declaration. -
setScope
Scope that owns the generated DOM and reactive readers. -
setTransclude
Transclusion function, when transclusion is enabled.
-