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

How does oauth 2.0 work?

575


Is mvc front end or backend?

569


How we can set http request header in angular 2 and angular 4?

596


What is the basic need to start with AngularJS?

606


What string interpolation is in angularjs?

605


What is typeofchecks in angular 8?

996


How to create a custom errorhandler?

618


Which module does is required for every angular 2 app?

590


Can we use jquery library in angularjs?

607


What is the scope in angularjs?

620


How do we include css file ins. The component except using styleurls property?

562


What is the difference between ajax and angularjs?

601


What is the difference between directives and services?

617


What is ivy renderer in angular 6?

578


How to setup angular 2 in visual studio 2017 mvc 5 / 6?

648