$rootScope.Scope.$watchCollection()

$watchCollection(obj, listener); Shallow watches the properties of an object and fires whenever any of the properties change (for arrays, this implies watching the array items; for object maps, this implies watching the properties). If a change is detected, the listener callback is fired. The obj collection is observed via standard $watch operation and is examined on every call to $digest() to see if any items have been added, removed, or moved. The listener is called whenever anything within

ngSanitize.$sanitize

$sanitizeProvider service in module ngSanitize Sanitizes an html string by stripping all potentially dangerous tokens. The input is sanitized by parsing the HTML into tokens. All safe tokens (from a whitelist) are then serialized back to properly escaped html string. This means that no unsafe input can make it into the returned string. The whitelist for URL sanitization of attribute values is configured using the functions aHrefSanitizationWhitelist and imgSrcSanitizationWhitelist of $

angular.isFunction

function in module ng Determines if a reference is a Function. Usage angular.isFunction(value); Arguments Param Type Details value * Reference to check. Returns boolean True if value is a Function.

ngMinlength

directive in module ng ngMinlength adds the minlength 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 minlength error key if the ngModel.$viewValue is shorter than the integer obtained by evaluating the Angular expression given in the ngMinlength attribute value. Note: This directive is also added when the plain minlength attribute is used, with two differences: ngMinlength does not s

ngRoute.$routeProvider.otherwise()

otherwise(params); Sets route definition that will be used on route change when no other route definition is matched. Parameters Param Type Details params Objectstring Mapping information to be assigned to $route.current. If called with a string, the value maps to redirectTo. Returns Object self

ngMock.$httpBackend.whenJSONP()

whenJSONP(url, [keys]); Creates a new backend definition for JSONP requests. For more info see when(). Parameters Param Type Details url stringRegExpfunction(string) HTTP url or function that receives a url and returns true if the url matches the current definition. keys (optional) Array Array of keys to assign to regex matches in request url described above. Returns requestHandler Returns an object with respond method that controls how a matched request is handled. You can sav

$parseProvider

$parse provider in module ng $parseProvider can be used for configuring the default behavior of the $parse service. Methods addLiteral(literalName, literalValue); Configure $parse service to add literal values that will be present as literal at expressions. Parameters Param Type Details literalName string Token for the literal value. The literal name value must be a valid literal name. literalValue * Value for this literal. All literal values must be primitives or undefin

angular.version

object in module ng An object that contains information about the current AngularJS version. This object has the following properties: full â {string} â Full version string, such as "0.9.18". major â {number} â Major version number, such as "0". minor â {number} â Minor version number, such as "9". dot â {number} â Dot version number, such as "18". codeName â {string} â Code name of the release, such as "jiggling-armfat".

ngMock.$httpBackend.expectRoute()

expectRoute(method, url); Creates a new request expectation that compares only with the requested route. Parameters Param Type Details method string HTTP method. url string HTTP url string that supports colon param matching. Returns requestHandler Returns an object with respond method that controls how a matched request is handled. You can save this object for later use and invoke respond again in order to change how a matched request is handled. See #expect for more info.

ngMock.$timeout.verifyNoPendingTasks()

verifyNoPendingTasks(); Verifies that there are no pending tasks that need to be flushed.