Angularjs Examples

AJS Examples


AngularJS Service Reference

AngularJS Services are injectable object using dependency injection (DI) mechanism. Complete reference of AngularJS services to organize and share code across your app. Click on "Try Now" button to modify and test code yourself.

AngularJS Service Reference

ServicesDescriptionLive Demo
$cookiesThis service is useful to write, read and delete browser cookies.Try Now
$windowThis service is similar to reference to the browser's window object.Try Now
$filterThis service is used for formatting data displayed to the user.Try Now
$documentThis service is wrapper for the browser's window.document object.Try Now
$locationThis service is similar to window.location object and exposes the current URL in the browser address bar.Try Now
$logThis service is useful to write error, info, warning and debugging into the browser's console.Try Now
$parseThis service is useful to convert AngularJS expression into a function.Try Now
$rootElementThis service is useful to access root element.Try Now
$exceptionHandlerThis service is useful to handle an uncaught exception in angular expressions by overriding the default exception handler behaviour.Try Now
$templateCache This service is useful to set form within a form.Try Now
$timeoutThis service is just wrapper for window.setTimeout function so that it will be easy to override, remove or mocked for testing.Try Now
$intervalThis service is similar to JavaScript's window.setInterval function.Try Now
$cacheFactoryThis service evaluates specified expression when the user changes the input.Try Now
$anchorScrollThis service is useful to set checkbox checked.Try Now