$q.resolve()

resolve(value, [successCallback], [errorCallback], [progressCallback]); Alias of when to maintain naming consistency with ES6. Parameters Param Type Details value * Value or a promise successCallback (optional) Function= errorCallback (optional) Function= progressCallback (optional) Function= Returns Promise Returns a promise of the passed value or promise

ngMockE2E.$httpBackend.whenPUT()

whenPUT(url, [data], [headers], [keys]); Creates a new backend definition for PUT 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. data (optional) stringRegExp HTTP request body. headers (optional) Objectfunction(Object) HTTP headers. keys (optional) Array Array of keys to assign to regex matches in request url described

form.FormController.$commitViewValue()

$commitViewValue(); Commit all form controls pending updates 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.

$interpolateProvider

$interpolate provider in module ng Used for configuring the interpolation markup. Defaults to {{ and }}. This feature is sometimes used to mix different markup languages, e.g. to wrap an Angular template within a Python Jinja template (or any other template language). Mixing templating languages is very dangerous. The embedding template language will not safely escape Angular expressions, so any user-controlled values in the template will cause Cross Site Scripting (XSS) security bugs!

$logProvider.debugEnabled()

debugEnabled([flag]); Parameters Param Type Details flag (optional) boolean enable or disable debug level messages Returns * current value if used as getter or itself (chaining) if used as setter

$filterProvider.register()

register(name, factory); Parameters Param Type Details name stringObject Name of the filter function, or an object map of filters where the keys are the filter names and the values are the filter factories. Note: Filter names must be valid angular Expressions identifiers, such as uppercase or orderBy. Names with special characters, such as hyphens and dots, are not allowed. If you wish to namespace your filters, then you can use capitalization (myappSubsectionFilterx) or underscores (myap

$httpProvider.defaults

defaults Object containing default values for all $http requests. defaults.cache - {boolean|Object} - A boolean value or object created with $cacheFactory to enable or disable caching of HTTP responses by default. See $http Caching for more information. defaults.xsrfCookieName - {string} - Name of cookie containing the XSRF token. Defaults value is 'XSRF-TOKEN'. defaults.xsrfHeaderName - {string} - Name of HTTP header to populate with the XSRF token. Defaults value is 'X-XSRF-TOKEN'. d

$templateRequestProvider.httpOptions()

httpOptions([value]); The options to be passed to the $http service when making the request. You can use this to override options such as the "Accept" header for template requests. The $templateRequest will set the cache and the transformResponse properties of the options if not overridden here. Parameters Param Type Details value (optional) string new value for the $http options. Returns stringself Returns the $http options when used as getter and self if used as setter.

$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 $