angular.identity

function in module ng A function that returns its first argument. This function is useful when writing code in the functional style. function transformer(transformationFn, value) { return (transformationFn || angular.identity)(value); }; Usage angular.identity(value); Arguments Param Type Details value * to be returned. Returns * the value passed in.

angular.injector

function in module ng Creates an injector object that can be used for retrieving services as well as for dependency injection (see dependency injection). Usage angular.injector(modules, [strictDi]); Arguments Param Type Details modules Array.<string|Function> A list of module functions or their aliases. See angular.module. The ng module must be explicitly added. strictDi (optional) boolean Whether the injector should be in strict mode, which disallows argument name annot

angular.isDate

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

angular.isArray

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

angular.forEach

function in module ng Invokes the iterator function once for each item in obj collection, which can be either an object or an array. The iterator function is invoked with iterator(value, key, obj), where value is the value of an object property or an array element, key is the object property key or array element index and obj is the obj itself. Specifying a context for the function is optional. It is worth noting that .forEach does not iterate over inherited properties because it filters u

angular.fromJson

function in module ng Deserializes a JSON string. Usage angular.fromJson(json); Arguments Param Type Details json string JSON string to deserialize. Returns ObjectArraystringnumber Deserialized JSON string.

angular.element

function in module ng Wraps a raw DOM element or HTML string as a jQuery element. If jQuery is available, angular.element is an alias for the jQuery function. If jQuery is not available, angular.element delegates to Angular's built-in subset of jQuery, called "jQuery lite" or jqLite. jqLite is a tiny, API-compatible subset of jQuery that allows Angular to manipulate the DOM in a cross-browser compatible way. jqLite implements only the most commonly needed functionality with the goal of hav

angular.extend

function in module ng Extends the destination object dst by copying own enumerable properties from the src object(s) to dst. You can specify multiple src objects. If you want to preserve original objects, you can do so by passing an empty object as the target: var object = angular.extend({}, object1, object2). Note: Keep in mind that angular.extend does not support recursive merge (deep copy). Use angular.merge for this. Usage angular.extend(dst, src); Arguments Param Type Details dst

angular.equals

function in module ng Determines if two objects or two values are equivalent. Supports value types, regular expressions, arrays and objects. Two objects or values are considered equivalent if at least one of the following is true: Both objects or values pass === comparison. Both objects or values are of the same type and all of their properties are equal by comparing them with angular.equals. Both values are NaN. (In JavaScript, NaN == NaN => false. But we consider two NaN as equal) Bot

angular.bind

function in module ng Returns a function which calls function fn bound to self (self becomes the this for fn). You can supply optional args that are prebound to the function. This feature is also known as partial application, as distinguished from function currying. Usage angular.bind(self, fn, args); Arguments Param Type Details self Object Context which fn should be evaluated in. fn function() Function to be bound. args * Optional arguments to be prebound to the fn fun