$xhrFactory

service in module ng Factory function used to create XMLHttpRequest objects. Replace or decorate this service to create your own custom XMLHttpRequest objects. angular.module('myApp', []) .factory('$xhrFactory', function() { return function createXhr(method, url) { return new window.XMLHttpRequest({mozSystem: true}); }; }); Usage $xhrFactory(method, url); Arguments Param Type Details method string HTTP method of the request (GET, POST, PUT, ..) url string URL of the r

$compile.directive.Attributes.$attr

$attr A map of DOM element attribute names to the normalized name. This is needed to do reverse lookup from normalized name back to actual name.

$location.url()

url([url]); This method is getter / setter. Return url (e.g. /path?a=b#hash) when called without any parameter. Change path, search and hash, when called with parameter and return $location. // given url http://example.com/#/some/path?foo=bar&baz=xoxo var url = $location.url(); // => "/some/path?foo=bar&baz=xoxo" Parameters Param Type Details url (optional) string New url without base prefix (e.g. /path?a=b#hash) Returns string url

$compile.directive.Attributes.$normalize()

$normalize(name); Converts an attribute name (e.g. dash/colon/underscore-delimited string, optionally prefixed with x- or data-) to its normalized, camelCase form. Also there is special case for Moz prefix starting with upper case letter. For further information check out the guide on Matching Directives Parameters Param Type Details name string Name to normalize

$compile.directive.Attributes.$updateClass()

$updateClass(newClasses, oldClasses); Adds and removes the appropriate CSS class values to the element based on the difference between the new and old CSS class values (specified as newClasses and oldClasses). Parameters Param Type Details newClasses string The current CSS className value oldClasses string The former CSS className value

$location.absUrl()

absUrl(); This method is getter only. Return full url representation with all segments encoded according to rules specified in RFC 3986. // given url http://example.com/#/some/path?foo=bar&baz=xoxo var absUrl = $location.absUrl(); // => "http://example.com/#/some/path?foo=bar&baz=xoxo" Returns string full url

$http.delete()

delete(url, [config]); Shortcut method to perform DELETE request. Parameters Param Type Details url string Relative or absolute URL specifying the destination of the request config (optional) Object Optional configuration object Returns HttpPromise Future object

$location.hash()

hash([hash]); This method is getter / setter. Returns the hash fragment when called without any parameters. Changes the hash fragment when called with a parameter and returns $location. // given url http://example.com/#/some/path?foo=bar&baz=xoxo#hashValue var hash = $location.hash(); // => "hashValue" Parameters Param Type Details hash (optional) stringnumber New hash fragment Returns string hash

ngComponentRouter.$rootRouter

service in module ngComponentRouter The singleton instance of the RootRouter type, which is associated with the top level $routerRootComponent.

$http.patch()

patch(url, data, [config]); Shortcut method to perform PATCH request. Parameters Param Type Details url string Relative or absolute URL specifying the destination of the request data * Request content config (optional) Object Optional configuration object Returns HttpPromise Future object