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

Guide: Controllers

In Angular, a Controller is defined by a JavaScript constructor function that is used to augment the Angular Scope. When a Controller is attached to the DOM via the ng-controller directive, Angular will instantiate a new Controller object, using the specified Controller's constructor function. A new child scope will be created and made available as an injectable parameter to the Controller's constructor function as $scope. If the controller has been attached using the controller as syntax then

ngMock.$log.warn.logs

warn.logs Array of messages logged using warn().

ngAnimate.$animateCss

service in module ngAnimate The $animateCss service is a useful utility to trigger customized CSS-based transitions/keyframes from a JavaScript-based animation or directly from a directive. The purpose of $animateCss is NOT to side-step how $animate and ngAnimate work, but the goal is to allow pre-existing animations or directives to create more complex animations that can be purely driven using CSS code. Note that only browsers that support CSS transitions and/or keyframe animations are c

a

directive in module ng Modifies the default behavior of the html A tag so that the default action is prevented when the href attribute is empty. This change permits the easy creation of action links with the ngClick directive without changing the location or causing page reloads, e.g.: <a href="" ng-click="list.addItem()">Add Item</a> Directive Info This directive executes at priority level 0. Usage as element: <a> ... </a>

ngModel.NgModelController.$commitViewValue()

$commitViewValue(); Commit a pending update to the $modelValue. Updates may be pending by a debounced event or because the input is waiting for a some future event defined in ng-model-options. this method is rarely needed as NgModelController usually handles calling this in response to input events.

$locale

service in module ng $locale service provides localization rules for various Angular components. As of right now the only public api is: id â {string} â locale id formatted as languageId-countryId (e.g. en-us)

input[email]

input in module ng Text input with email validation. Sets the email validation error key if not a valid email address. Note: input[email] uses a regex to validate email addresses that is derived from the regex used in Chromium. If you need stricter validation (e.g. requiring a top-level domain), you can use ng-pattern or modify the built-in validators (see the Forms guide) Directive Info This directive executes at priority level 0. Usage <input type="email" ng-model="string"

ngRoute.provider

Name Description $routeProvider Used for configuring routes.

$interpolateProvider.startSymbol()

startSymbol([value]); Symbol to denote start of expression in the interpolated string. Defaults to {{. Parameters Param Type Details value (optional) string new value to set the starting symbol to. Returns stringself Returns the symbol when used as getter and self if used as setter.