ngMock.$httpBackend.expectPOST()

expectPOST(url, [data], [headers], [keys]); Creates a new request expectation for POST requests. For more info see expect(). 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. data (optional) stringRegExpfunction(string)Object HTTP request body or function that receives data string and returns true if the data is as expected, or Object if request body is in JSON format.

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)

ngModel.NgModelController

type in module ng NgModelController provides API for the ngModel directive. The controller contains services for data-binding, validation, CSS updates, and value formatting and parsing. It purposefully does not contain any logic which deals with DOM rendering or listening to DOM events. Such DOM related logic should be provided by other directives which make use of NgModelController for data-binding to control elements. Angular provides this DOM logic for most input elements. At the end of

ngInclude

directive in module ng Fetches, compiles and includes an external HTML fragment. By default, the template URL is restricted to the same domain and protocol as the application document. This is done by calling $sce.getTrustedResourceUrl on it. To load templates from other domains or protocols you may either whitelist them or wrap them as trusted values. Refer to Angular's Strict Contextual Escaping. In addition, the browser's Same Origin Policy and Cross-Origin Resource Sharing (CORS) polic

ngRoute.ngView.$viewContentLoaded

$viewContentLoaded Emitted every time the ngView content is reloaded. Type: emit Target: the current ngView scope

ngModel.NgModelController.$pristine

$pristine boolean True if user has not interacted with the control yet.

ngRoute.$routeProvider.when()

when(path, route); Adds a new route definition to the $route service. Parameters Param Type Details path string Route path (matched against $location.path). If $location.path contains redundant trailing slash or is missing one, the route will still match and the $location.path will be updated to add or drop the trailing slash to exactly match the route definition. path can contain named groups starting with a colon: e.g. :name. All characters up to the next slash are matched and stored

$animateProvider

$animate provider in module ng Default implementation of $animate that doesn't perform any animations, instead just synchronously performs DOM updates and resolves the returned runner promise. In order to enable animations the ngAnimate module has to be loaded. To see the functional implementation check out src/ngAnimate/animate.js. Methods register(name, factory); Registers a new injectable animation factory function. The factory function produces the animation object which contains

ngModel.NgModelController.$setUntouched()

$setUntouched(); Sets the control to its untouched state. This method can be called to remove the ng-touched class and set the control to its untouched state (ng-untouched class). Upon compilation, a model is set as untouched by default, however this function can be used to restore that state if the model has already been touched by the user.

ngCookies.$cookies.getAll()

getAll(); Returns a key value object with all the cookies Returns Object All cookies