![]() When true, a clone of the compiled element is re-inserted. When the condition is false, the element is removed from the DOM. ng-if Basic if statement directive that instantiates the following element if the conditions are true. ng-controller Specifies a JavaScript controller class that evaluates HTML expressions. ng-class Conditionally apply a class, depending on the value of a boolean expression. Any change to the variable ‘name’ in the application's scope reflect instantly in the DOM. For example, displays the value of ‘name’ inside the span element. ng-bind Sets the text of a DOM element to the value of an expression. ng-aria A module for accessibility support of common ARIA attributes. Ng-app Declares the root element of an AngularJS application, under which directives can be used to declare bindings and define behavior. For example, both ng-app and data-ng-app are valid in AngularJS. Since ng-* attributes are not valid in HTML specifications, data-ng-* can also be used as a prefix. Ng-animate A module provides support for JavaScript, CSS3 transition and CSS3 keyframe animation hooks within existing core and custom directives. ![]() Some of the most commonly used directives were:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |