What is Service in AngularJS?

Answer Posted / chaitanya

A service is a reusable singleton object which is used to organize and share code across your app. A service can be injected into controllers, filters, directives.

AngularJS offers several built-in services (like $http, $provide, $resource, $window, $parse) which always start with $ sign.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is service? Why use?

642


How would you optimize the application for better performance in angular 2?

566


Is $http service is restful web service in angular js?

597


Explain ng-init directive angularjs?

613


What do you mean by data binding?

636


Difference between obtrusive and unobtrusive javascript?

643


Explain about angularjs value?

646


How angularjs is used to handle the security hurdles?

611


What is the use of codelyzer in angular 2 application.?

628


What is async pipe in angular?

596


What makes angular.js better?

597


How many types of ngmodule?

581


Why do we use angular instead of react js?

590


Tell me which browsers does Angular work with?

653


Does AngularJS have dependency on jQuery?

617