angular.bootstrap

function in module ng Use this function to manually start up angular application. For more information, see the Bootstrap guide. Angular will detect if it has been loaded into the browser more than once and only allow the first loaded script to be bootstrapped and will report a warning to the browser console for each of the subsequent scripts. This prevents strange results in applications, where otherwise multiple instances of Angular try to work on the DOM. Note: Protractor based end-to-

angular.bind

function in module ng Returns a function which calls function fn bound to self (self becomes the this for fn). You can supply optional args that are prebound to the function. This feature is also known as partial application, as distinguished from function currying. Usage angular.bind(self, fn, args); Arguments Param Type Details self Object Context which fn should be evaluated in. fn function() Function to be bound. args * Optional arguments to be prebound to the fn fun

a

directive in module ng Modifies the default behavior of the html A tag so that the default action is prevented when the href attribute is empty. This change permits the easy creation of action links with the ngClick directive without changing the location or causing page reloads, e.g.: <a href="" ng-click="list.addItem()">Add Item</a> Directive Info This directive executes at priority level 0. Usage as element: <a> ... </a>

$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

$window

service in module ng A reference to the browser's window object. While window is globally available in JavaScript, it causes testability problems, because it is a global variable. In angular we always refer to it through the $window service, so it may be overridden, removed or mocked for testing. Expressions, like the one defined for the ngClick directive in the example below, are evaluated with respect to the current scope. Therefore, there is no risk of inadvertently coding in a dependen

$timeout.cancel()

cancel([promise]); Cancels a task associated with the promise. As a result of this, the promise will be resolved with a rejection. Parameters Param Type Details promise (optional) Promise Promise returned by the $timeout function. Returns boolean Returns true if the task hasn't executed yet and was successfully canceled.

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

$templateRequestProvider

$templateRequest provider in module ng Used to configure the options passed to the $http service when making a template request. For example, it can be used for specifying the "Accept" header that is sent to the server, when requesting a template. Methods 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 tra

$templateRequest.totalPendingRequests

totalPendingRequests number total amount of pending template requests being downloaded.

$templateRequest

$templateRequestProvider service in module ng The $templateRequest service runs security checks then downloads the provided template using $http and, upon success, stores the contents inside of $templateCache. If the HTTP request fails or the response data of the HTTP request is empty, a $compile error will be thrown (the exception can be thwarted by setting the 2nd parameter of the function to true). Note that the contents of $templateCache are trusted, so the call to $sce.getTrustedUrl