Optional
$$addInternal hook for directive compilation state
Optional
bindWhether to bind scope to controller
Optional
compileCompile function for the directive
Optional
controllerController constructor or injectable string name
Optional
controllerAlias name for the controller in templates
Optional
linkLink function(s) executed during linking
Optional
nameOptional name (usually inferred)
Optional
priorityPriority of the directive
Optional
replaceReplaces the element with the template if true
Optional
requireRequired controllers for the directive
Optional
restrictRestrict option: 'A' and/or 'E'. Defaults to 'EA'
Optional
scopeScope configuration (true
, false
, or object for isolate scope)
Optional
templateInline template
Optional
templateTemplate namespace (e.g., SVG, HTML)
Optional
templateTemplate URL for loading from server
Optional
terminalStops further directive processing if true
Optional
transcludeEnables transclusion or configures named slots
Defines the structure of an AngularTS directive.