Package org.angular.ts.ng
Interface Directive<TController>
@JsType(isNative=true,
name="ng.Directive",
namespace="<global>")
public interface Directive<TController>
Public AngularTS Directive contract exposed through the global ng namespace for Closure-annotated applications.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <TController>
Directive<TController> create()Whether to bind scope to controllerCompile function for the directiveController constructor or injectable string nameAlias name for the controller in templatesdoublegetCount()Currently only used by view directivegetLink()Link function(s) executed during linkinggetName()Optional name (usually inferred)doublePriority of the directiveRequired controllers for the directiveRestrict option: 'A' and/or 'E'.getScope()Scope configuration (`true`, `false`, or object for isolate scope)Inline templateTemplate namespace (e.g., SVG, HTML)Template URL for loading from serverEnables transclusion or configures named slotsgetView()Real-DOM view factory.booleanReplaces the element with the template if truebooleanStops further directive processing if truevoidsetBindToController(Object bindToController) Whether to bind scope to controllervoidsetCompile(DirectiveCompileFn compile) Compile function for the directivevoidsetController(Object controller) Controller constructor or injectable string namevoidsetControllerAs(String controllerAs) Alias name for the controller in templatesvoidsetCount(double count) Currently only used by view directivevoidsetLink(DirectiveLinkFn link) Link function(s) executed during linkingvoidOptional name (usually inferred)voidsetPriority(double priority) Priority of the directivevoidsetReplace(boolean replace) Replaces the element with the template if truevoidsetRequire(Object require) Required controllers for the directivevoidsetRestrict(String restrict) Restrict option: 'A' and/or 'E'.voidScope configuration (`true`, `false`, or object for isolate scope)voidsetTemplate(Object template) Inline templatevoidsetTemplateNamespace(String templateNamespace) Template namespace (e.g., SVG, HTML)voidsetTemplateUrl(Object templateUrl) Template URL for loading from servervoidsetTerminal(boolean terminal) Stops further directive processing if truevoidsetTransclude(Object transclude) Enables transclusion or configures named slotsvoidsetView(DirectiveView<Object, Object> view) Real-DOM view factory.
-
Method Details
-
create
-
getBindToController
Whether to bind scope to controller -
getCompile
Compile function for the directive -
getController
Controller constructor or injectable string name -
getControllerAs
Alias name for the controller in templates -
getCount
@JsProperty double getCount()Currently only used by view directive -
getLink
Link function(s) executed during linking -
getName
Optional name (usually inferred) -
getPriority
@JsProperty double getPriority()Priority of the directive -
getRequire
Required controllers for the directive -
getRestrict
Restrict option: 'A' and/or 'E'. Defaults to 'EA' if not defined -
getScope
Scope configuration (`true`, `false`, or object for isolate scope) -
getTemplate
Inline template -
getTemplateNamespace
Template namespace (e.g., SVG, HTML) -
getTemplateUrl
Template URL for loading from server -
getTransclude
Enables transclusion or configures named slots -
getView
Real-DOM view factory. It is mutually exclusive with template, templateUrl, and replace and composes with compile/link. -
isReplace
@JsProperty boolean isReplace()Replaces the element with the template if true -
isTerminal
@JsProperty boolean isTerminal()Stops further directive processing if true -
setBindToController
Whether to bind scope to controller -
setCompile
Compile function for the directive -
setController
Controller constructor or injectable string name -
setControllerAs
Alias name for the controller in templates -
setCount
@JsProperty void setCount(double count) Currently only used by view directive -
setLink
Link function(s) executed during linking -
setName
Optional name (usually inferred) -
setPriority
@JsProperty void setPriority(double priority) Priority of the directive -
setReplace
@JsProperty void setReplace(boolean replace) Replaces the element with the template if true -
setRequire
Required controllers for the directive -
setRestrict
Restrict option: 'A' and/or 'E'. Defaults to 'EA' if not defined -
setScope
Scope configuration (`true`, `false`, or object for isolate scope) -
setTemplate
Inline template -
setTemplateNamespace
Template namespace (e.g., SVG, HTML) -
setTemplateUrl
Template URL for loading from server -
setTerminal
@JsProperty void setTerminal(boolean terminal) Stops further directive processing if true -
setTransclude
Enables transclusion or configures named slots -
setView
Real-DOM view factory. It is mutually exclusive with template, templateUrl, and replace and composes with compile/link.
-