angular.Module.requires

requires Holds the list of modules which the injector will load before the current module is loaded.

$sce.parseAsHtml()

parseAsHtml(expression); Shorthand method. $sce.parseAsHtml(expression string) â $sce.parseAs($sce.HTML, value) Parameters Param Type Details expression string String expression to compile. Returns function(context, locals) a function which represents the compiled expression: context â {object} â an object against which any expressions embedded in the strings are evaluated against (typically a scope object). locals â {object=} â local variables context object, useful

$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

$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

ngMock.$timeout.verifyNoPendingTasks()

verifyNoPendingTasks(); Verifies that there are no pending tasks that need to be flushed.

$http.jsonp()

jsonp(url, [config]); Shortcut method to perform JSONP request. Parameters Param Type Details url string Relative or absolute URL specifying the destination of the request. The name of the callback should be the string JSON_CALLBACK. config (optional) Object Optional configuration object Returns HttpPromise Future object

auto.$injector.invoke()

invoke(fn, [self], [locals]); Invoke the method and supply the method arguments from the $injector. Parameters Param Type Details fn function()Array.<(string|function())> The injectable function to invoke. Function parameters are injected according to the $inject Annotation rules. self (optional) Object The this for the invoked method. locals (optional) Object Optional object. If preset then any argument names are read from this object first, before the $injector is con

Guide: Security

This document explains some of AngularJS's security features and best practices that you should keep in mind as you build your application. Reporting a security issue Email us at security@angularjs.org to report any potential security issues in AngularJS. Please keep in mind the points below about Angular's expression language. Use the latest AngularJS possible Like any software library, it is critical to keep AngularJS up to date. Please track the CHANGELOG and make sure you are aware of upcom

$locationProvider.hashPrefix()

hashPrefix([prefix]); Parameters Param Type Details prefix (optional) string Prefix for hash part (containing path and search) Returns * current value if used as getter or itself (chaining) if used as setter

limitTo

filter in module ng Creates a new array or string containing only a specified number of elements. The elements are taken from either the beginning or the end of the source array, string or number, as specified by the value and sign (positive or negative) of limit. If a number is used as input, it is converted to a string. Usage In HTML Template Binding {{ limitTo_expression | limitTo : limit : begin}} In JavaScript $filter('limitTo')(input, limit, begin) Arguments Param Type Details inp