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 Type
    Method
    Description
    static <TControllerInstance, TScopeInstance, TElement>
    ComponentDefinition<TControllerInstance,TScopeInstance,TElement>
     
    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.
    Public ComponentDefinition.view member exposed by the AngularTS namespace contract.
    boolean
    Public ComponentDefinition.replace member exposed by the AngularTS namespace contract.
    void
    setBindings(jsinterop.base.JsPropertyMap<String> bindings)
    Define DOM attribute binding to component properties.
    void
    setController(Object controller)
    Public ComponentDefinition.controller member exposed by the AngularTS namespace contract.
    void
    setControllerAs(String controllerAs)
    An identifier name for a reference to the controller.
    void
    setReplace(boolean replace)
    Public ComponentDefinition.replace member exposed by the AngularTS namespace contract.
    void
    setRequire(jsinterop.base.JsPropertyMap<String> require)
    Requires the controllers of other directives and binds them to this component's controller.
    void
    setTemplate(Object template)
    Public ComponentDefinition.template member exposed by the AngularTS namespace contract.
    void
    setTemplateUrl(Object templateUrl)
    Public ComponentDefinition.templateUrl member exposed by the AngularTS namespace contract.
    void
    setTransclude(Object transclude)
    Whether transclusion is enabled.
    void
    Public ComponentDefinition.view member exposed by the AngularTS namespace contract.
  • Method Details

    • create

      @JsOverlay static <TControllerInstance, TScopeInstance, TElement> ComponentDefinition<TControllerInstance,TScopeInstance,TElement> create()
    • getBindings

      @JsProperty jsinterop.base.JsPropertyMap<String> getBindings()
      Define DOM attribute binding to component properties. Component properties are always bound to the component controller and not to the scope.
    • getController

      @JsProperty Object getController()
      Public ComponentDefinition.controller member exposed by the AngularTS namespace contract.
    • getControllerAs

      @JsProperty String 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

      @JsProperty jsinterop.base.JsPropertyMap<String> 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

      @JsProperty Object getTemplate()
      Public ComponentDefinition.template member exposed by the AngularTS namespace contract.
    • getTemplateUrl

      @JsProperty Object getTemplateUrl()
      Public ComponentDefinition.templateUrl member exposed by the AngularTS namespace contract.
    • getTransclude

      @JsProperty Object getTransclude()
      Whether transclusion is enabled. Disabled by default.
    • getView

      @JsProperty ProgrammaticView<Object,Object,Object,Object> 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

      @JsProperty void setBindings(jsinterop.base.JsPropertyMap<String> bindings)
      Define DOM attribute binding to component properties. Component properties are always bound to the component controller and not to the scope.
    • setController

      @JsProperty void setController(Object controller)
      Public ComponentDefinition.controller member exposed by the AngularTS namespace contract.
    • setControllerAs

      @JsProperty void setControllerAs(String controllerAs)
      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

      @JsProperty void setRequire(jsinterop.base.JsPropertyMap<String> require)
      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

      @JsProperty void setTemplate(Object template)
      Public ComponentDefinition.template member exposed by the AngularTS namespace contract.
    • setTemplateUrl

      @JsProperty void setTemplateUrl(Object templateUrl)
      Public ComponentDefinition.templateUrl member exposed by the AngularTS namespace contract.
    • setTransclude

      @JsProperty void setTransclude(Object transclude)
      Whether transclusion is enabled. Disabled by default.
    • setView

      @JsProperty void setView(ProgrammaticView<Object,Object,Object,Object> view)
      Public ComponentDefinition.view member exposed by the AngularTS namespace contract.