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

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 $

angular.isFunction

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

ngMinlength

directive in module ng ngMinlength adds the minlength validator to ngModel. It is most often used for text-based input controls, but can also be applied to custom text-based controls. The validator sets the minlength error key if the ngModel.$viewValue is shorter than the integer obtained by evaluating the Angular expression given in the ngMinlength attribute value. Note: This directive is also added when the plain minlength attribute is used, with two differences: ngMinlength does not s

ngRoute.$routeProvider.otherwise()

otherwise(params); Sets route definition that will be used on route change when no other route definition is matched. Parameters Param Type Details params Objectstring Mapping information to be assigned to $route.current. If called with a string, the value maps to redirectTo. Returns Object self

ngMock.$httpBackend.whenJSONP()

whenJSONP(url, [keys]); Creates a new backend definition for JSONP 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. keys (optional) Array Array of keys to assign to regex matches in request url described above. Returns requestHandler Returns an object with respond method that controls how a matched request is handled. You can sav

$parseProvider

$parse provider in module ng $parseProvider can be used for configuring the default behavior of the $parse service. Methods addLiteral(literalName, literalValue); Configure $parse service to add literal values that will be present as literal at expressions. Parameters Param Type Details literalName string Token for the literal value. The literal name value must be a valid literal name. literalValue * Value for this literal. All literal values must be primitives or undefin

angular.version

object in module ng An object that contains information about the current AngularJS version. This object has the following properties: full â {string} â Full version string, such as "0.9.18". major â {number} â Major version number, such as "0". minor â {number} â Minor version number, such as "9". dot â {number} â Dot version number, such as "18". codeName â {string} â Code name of the release, such as "jiggling-armfat".

ngMock.$httpBackend.expectRoute()

expectRoute(method, url); Creates a new request expectation that compares only with the requested route. Parameters Param Type Details method string HTTP method. url string HTTP url string that supports colon param matching. Returns requestHandler Returns an object with respond method that controls how a matched request is handled. You can save this object for later use and invoke respond again in order to change how a matched request is handled. See #expect for more info.