Angular Services

This is a whitelist of the Angular services that you can inject as dependencies into your components (controller, services, etc.).

Name Description
$anchorScroll

When called, it checks current value of $location.hash and scrolls to the related element, according to rules specified in Html5 spec.

$cookies

Provides read/write access to browser's cookies.

$cookieStore

Provides a key-value (string-object) storage, that is backed by session cookies. Objects put or retrieved from this storage are automatically serialized or deserialized by angular's toJson/fromJson.

$filter

Filters are used for formatting data displayed to the user.

$http

The $http service is a core Angular service that facilitates communication with the remote HTTP servers via the browser's XMLHttpRequest object or via JSONP.

$interpolate

Compiles a string with markup into an interpolation function. This service is used by the HTML $compile service for data binding. See $interpolateProvider for configuring the interpolation markup.

$interval

Angular's wrapper for window.setInterval. The fn function is executed every delaymilliseconds.

$locale

$locale service provides localization rules for various Angular components.

$location

The $location service parses the URL in the browser address bar (based on the window.location) and makes the URL available to your application. Changes to the URL in the address bar are reflected into $location service and changes to $location are reflected into the browser address bar.

$log

Simple service for logging. Default implementation safely writes the message into the browser's console (if present).

$parse

Converts Angular expression into a function.

$q

A promise/deferred implementation inspired by Kris Kowal's Q.

$routeParams

The $routeParams service allows you to retrieve the current set of route parameters.

$timeout

Angular's wrapper for window.setTimeout. The fn function is wrapped into a try/catch block and delegates any exceptions to $exceptionHandler service.

Partially Supported Services

This is a list of partially supported angular services that can be injected into plugins. Only the methods listed here are allowed. All other methods and properties are not implemented.

Name Description
$templateCache

The way to access angular templates programmatically. The get method is supported to read your plugin templates out of the $templateCache.

$window

The only way to access the browser window object. Only the open and reloadmethod is supported.

For the reload method if you pass true ex: $window.reload(true), causes the page to always be reloaded from the server.