AngularJS Services

1. What is a service?

Services are javascript functions and responsible for doing a specific task only.

The Angular Js has 30 inbuilt services some of them $http,$route,$location,etc....


2. What is $timeout Service?

The $timeout service can be used to call another javascript function after a given time delay.



3. What is $interval Service?

The $interval service function is similar to $timeout function. but we can schedule a function for repeated executions in between time intervals.



4. What is $location service?

The $location service is used to return the information about the location of current web page .