What is a service?

 Posted by Vivek.Ramapuram on 7/15/2015 | Category: AngularJS 1x Interview questions | Views: 2051 | Points: 40
Answer:

Services are JavaScript functions and are responsible to do specific tasks only. Each service is responsible for a specific task for example, $http is used to make ajax call to get the server data. $route is used to define the routing information and so on. Inbuilt services are always prefixed with $ symbol


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response