ngRepeat

directive in module ng The ngRepeat directive instantiates a template once per item from a collection. Each template instance gets its own scope, where the given loop variable is set to the current collection item, and $index is set to the item index or key. Special properties are exposed on the local scope of each template instance, including: Variable Type Details $index number iterator offset of the repeated element (0..length-1) $first boolean true if the repeated element is first in t

ngRequired

directive in module ng ngRequired adds the required validator to ngModel. It is most often used for input and select controls, but can also be applied to custom controls. The directive sets the required attribute on the element if the Angular expression inside ngRequired evaluates to true. A special directive for setting required is necessary because we cannot use interpolation inside required. See the interpolation guide for more info. The validator will set the required error key to true

ngPaste

directive in module ng Specify custom behavior on paste event. Directive Info This directive executes at priority level 0. Usage as attribute: <window, input, select, textarea, a ng-paste="expression"> ... </window, input, select, textarea, a> Arguments Param Type Details ngPaste expression Expression to evaluate upon paste. (Event object is available as $event)

ngPluralize

directive in module ng ngPluralize is a directive that displays messages according to en-US localization rules. These rules are bundled with angular.js, but can be overridden (see Angular i18n dev guide). You configure ngPluralize directive by specifying the mappings between plural categories and the strings to be displayed. Plural categories and explicit number rules There are two plural categories in Angular's default en-US locale: "one" and "other". While a plural category may match man

ngPattern

directive in module ng ngPattern adds the pattern validator to ngModel. It is most often used for text-based input controls, but can also be applied to custom text-based controls. The validator sets the pattern error key if the ngModel.$viewValue does not match a RegExp which is obtained by evaluating the Angular expression given in the ngPattern attribute value: If the expression evaluates to a RegExp object, then this is used directly. If the expression evaluates to a string, then it wil

ngOptions

directive in module ng The ngOptions attribute can be used to dynamically generate a list of <option> elements for the <select> element using the array or object obtained by evaluating the ngOptions comprehension expression. In many cases, ngRepeat can be used on <option> elements instead of ngOptions to achieve a similar result. However, ngOptions provides some benefits such as reducing memory and increasing speed by not creating a new scope for each repeated instance, a

ngReadonly

directive in module ng Sets the readOnly attribute on the element, if the expression inside ngReadonly is truthy. A special directive is necessary because we cannot use interpolation inside the readOnly attribute. See the interpolation guide for more info. Directive Info This directive executes at priority level 100. Usage as attribute: <INPUT ng-readonly="expression"> ... </INPUT> Arguments Param Type Details ngReadonly expression If the expression is truthy, then

ngMouseup

directive in module ng Specify custom behavior on mouseup event. Directive Info This directive executes at priority level 0. Usage as attribute: <ANY ng-mouseup="expression"> ... </ANY> Arguments Param Type Details ngMouseup expression Expression to evaluate upon mouseup. (Event object is available as $event)

ngNonBindable

directive in module ng The ngNonBindable directive tells Angular not to compile or bind the contents of the current DOM element. This is useful if the element contains what appears to be Angular directives and bindings but which should be ignored by Angular. This could be the case if you have a site that displays snippets of code, for instance. Directive Info This directive executes at priority level 1000. Usage as attribute: <ANY> ... </ANY> as CSS class: <ANY class=""&

ngOpen

directive in module ng Sets the open attribute on the element, if the expression inside ngOpen is truthy. A special directive is necessary because we cannot use interpolation inside the open attribute. See the interpolation guide for more info. Directive Info This directive executes at priority level 100. Usage as attribute: <DETAILS ng-open="expression"> ... </DETAILS> Arguments Param Type Details ngOpen expression If the expression is truthy, then special attribut