AngualarJS Terms

rudyryu's version from 2016-09-30 14:15


Question Answer
AngualarJS Directive Teach HTML new tricks! They are markers on a DOM element that tell AngularJS' HTML compiler ($compile) to attach a specified behavior to that DOM element.
DOM-Driven DirectiveA directive category that is all about DOM manipulation
Data-Driven DirectiveA directive category that is all about data, using other directives and a controller
Behavior-Driven DirectiveA directive category that all about handling DOM events
ATTRIBUTE directive type<span my-dir="exp">
ELEMENT directive type<my-dir></my-dir>
CLASS directive type<span class="my-dir">
COMMENT directive type<!-- directive: my-dir exp -->
DDODirective Definition Object ~ Part of a $complie provider; an object-literal that tells the $compile provider what it needs
$compile providerComplies and HTML string or DOM into a template and produces a template function, which can the be used to link scope and the template together
$interpolateTo converted into something useful
transclusionInclusion of a document or part of a document into another document by reference.
jqLiteA tiny, API-compatible subset of jQuery that allows Angular to manipulate the DOM; The "Middle Man" between DOM and directive.
shared scopeTrickles down from parent-scope

Recent badges