$rootScope.Scope.$destroy()

$destroy(); Removes the current scope (and all of its children) from the parent scope. Removal implies that calls to $digest() will no longer propagate to the current scope and its children. Removal also implies that the current scope is eligible for garbage collection. The $destroy() is usually used by directives such as ngRepeat for managing the unrolling of the loop. Just before a scope is destroyed, a $destroy event is broadcasted on this scope. Application code can register a $destroy eve

auto.$injector.instantiate()

instantiate(Type, [locals]); Create a new instance of JS type. The method takes a constructor function, invokes the new operator, and supplies all of the arguments to the constructor function as specified by the constructor annotation. Parameters Param Type Details Type Function Annotated constructor function. locals (optional) Object Optional object. If preset then any argument names are read from this object first, before the $injector is consulted. Returns Object new instanc

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

ngSrcset

directive in module ng Using Angular markup like {{hash}} in a srcset attribute doesn't work right: The browser will fetch from the URL with the literal text {{hash}} until Angular replaces the expression inside {{hash}}. The ngSrcset directive solves this problem. The buggy way to write it: <img srcset="http://www.gravatar.com/avatar/{{hash}} 2x" alt="Description"/> The correct way to write it: <img ng-srcset="http://www.gravatar.com/avatar/{{hash}} 2x" alt="Description" />

ngMousedown

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

ngCookies.$cookies.getObject()

getObject(key); Returns the deserialized value of given cookie key Parameters Param Type Details key string Id to use for lookup. Returns Object Deserialized cookie value.

ngMockE2E.$httpBackend.whenDELETE()

whenDELETE(url, [headers], [keys]); Creates a new backend definition for DELETE 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. headers (optional) Objectfunction(Object) HTTP headers. keys (optional) Array Array of keys to assign to regex matches in request url described on $httpBackend mock. Returns requestHandler Returns

ngList

directive in module ng Text input that converts between a delimited string and an array of strings. The default delimiter is a comma followed by a space - equivalent to ng-list=", ". You can specify a custom delimiter as the value of the ngList attribute - for example, ng-list=" | ". The behaviour of the directive is affected by the use of the ngTrim attribute. If ngTrim is set to "false" then whitespace around both the separator and each list item is respected. This implies that the user

angular.isString

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

form.FormController.$valid

$valid boolean True if all of the containing forms and controls are valid.