Package org.angular.ts.ng
Interface ComponentDefinition<TControllerInstance,TScopeInstance,TElement>
@JsType(isNative=true,
name="ng.ComponentDefinition",
namespace="<global>")
public interface ComponentDefinition<TControllerInstance,TScopeInstance,TElement>
Public AngularTS ComponentDefinition contract exposed through the global ng namespace for Closure-annotated applications.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <TControllerInstance,TScopeInstance, TElement>
ComponentDefinition<TControllerInstance, TScopeInstance, TElement> create()jsinterop.base.JsPropertyMap<String> Define DOM attribute binding to component properties.Public ComponentDefinition.controller member exposed by the AngularTS namespace contract.An identifier name for a reference to the controller.jsinterop.base.JsPropertyMap<String> Requires the controllers of other directives and binds them to this component's controller.Public ComponentDefinition.template member exposed by the AngularTS namespace contract.Public ComponentDefinition.templateUrl member exposed by the AngularTS namespace contract.Whether transclusion is enabled.getView()Public ComponentDefinition.view member exposed by the AngularTS namespace contract.booleanPublic ComponentDefinition.replace member exposed by the AngularTS namespace contract.voidsetBindings(jsinterop.base.JsPropertyMap<String> bindings) Define DOM attribute binding to component properties.voidsetController(Object controller) Public ComponentDefinition.controller member exposed by the AngularTS namespace contract.voidsetControllerAs(String controllerAs) An identifier name for a reference to the controller.voidsetReplace(boolean replace) Public ComponentDefinition.replace member exposed by the AngularTS namespace contract.voidsetRequire(jsinterop.base.JsPropertyMap<String> require) Requires the controllers of other directives and binds them to this component's controller.voidsetTemplate(Object template) Public ComponentDefinition.template member exposed by the AngularTS namespace contract.voidsetTemplateUrl(Object templateUrl) Public ComponentDefinition.templateUrl member exposed by the AngularTS namespace contract.voidsetTransclude(Object transclude) Whether transclusion is enabled.voidsetView(ComponentView view) Public ComponentDefinition.view member exposed by the AngularTS namespace contract.
-
Method Details
-
create
@JsOverlay static <TControllerInstance,TScopeInstance, ComponentDefinition<TControllerInstance,TElement> TScopeInstance, create()TElement> -
getBindings
Define DOM attribute binding to component properties. Component properties are always bound to the component controller and not to the scope. -
getController
Public ComponentDefinition.controller member exposed by the AngularTS namespace contract. -
getControllerAs
An identifier name for a reference to the controller. If present, the controller will be published to its scope under the specified name. If not present, this will default to '$ctrl'. -
getRequire
Requires the controllers of other directives and binds them to this component's controller. The object keys specify the property names under which the required controllers (object values) will be bound. Note that the required controllers will not be available during the instantiation of the controller, but they are guaranteed to be available just before the onInit method is executed! -
getTemplate
Public ComponentDefinition.template member exposed by the AngularTS namespace contract. -
getTemplateUrl
Public ComponentDefinition.templateUrl member exposed by the AngularTS namespace contract. -
getTransclude
Whether transclusion is enabled. Disabled by default. -
getView
Public ComponentDefinition.view member exposed by the AngularTS namespace contract. -
isReplace
@JsProperty boolean isReplace()Public ComponentDefinition.replace member exposed by the AngularTS namespace contract. -
setBindings
Define DOM attribute binding to component properties. Component properties are always bound to the component controller and not to the scope. -
setController
Public ComponentDefinition.controller member exposed by the AngularTS namespace contract. -
setControllerAs
An identifier name for a reference to the controller. If present, the controller will be published to its scope under the specified name. If not present, this will default to '$ctrl'. -
setReplace
@JsProperty void setReplace(boolean replace) Public ComponentDefinition.replace member exposed by the AngularTS namespace contract. -
setRequire
Requires the controllers of other directives and binds them to this component's controller. The object keys specify the property names under which the required controllers (object values) will be bound. Note that the required controllers will not be available during the instantiation of the controller, but they are guaranteed to be available just before the onInit method is executed! -
setTemplate
Public ComponentDefinition.template member exposed by the AngularTS namespace contract. -
setTemplateUrl
Public ComponentDefinition.templateUrl member exposed by the AngularTS namespace contract. -
setTransclude
Whether transclusion is enabled. Disabled by default. -
setView
Public ComponentDefinition.view member exposed by the AngularTS namespace contract.
-