AngularJS Built in Services

Angular services are injectable object injected using dependency injection (DI) mechanism of AngularJS. The AngularJS services can be used to organize and share code across your app.

Angular services are:

  • Lazily instantiated - Angular only instantiates a service when an application component depends on it.
  • Singletons - Each component dependent on a service gets a reference to the single instance generated by the service factory.

AngularJS Built in Services

Here is a list of AngularJS built in Services with description.

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

Note: Click on above listed built-in AngulatJS servives to know more detail about each service.

See Also

AngularJS Built-in Filters
AngularJS Built-in Directives
AngularJS Expression
AngularJS Built-in Events
AngularJS Scope Methods
AngularJS Built-in Services
AngularJS Controller Inheritance
AngularJS Custom Directives


 
SHARE THIS IF YOU LIKE!
submit to reddit

SUBSCRIBE FOR LATEST UPDATES
HAVE WE CONNECTED ON FACEBOOK?
TOP TUTORIALSTOP CODE EXAMPLESTOP LIVE DEMOLINKSSTAY CONNECTED
HTML Tutorial
HTML5 Tutorial
Bootstrap3 Tutorial
Javascript Tutorial
TypeScript Tutorial
AngularJS Tutorial
CSharp Tutorial
PHP Tutorial
Developer Tools
Javascript
AngularJS
Google MAP API V3
ASP.NET
Javascript
AngularJS
Google MAP API V3
Contact Us
Advertise with Us
Privacy Policy
Disclaimer
Stay connected. We actually like you. If you want to get up to the minute updates, then connect with us on your fav below.
 
Twitter   Linkedin   Facebook   Google+    RSS   Pinterest
 
Protected by Copyscape Original Content Checker
 
 
Copyright ©2017 www.techstrikers.com Unauthorized reproduction/replication of any part of this site is prohibited.