What is Service in AngularJS?



What is Service in AngularJS?..

Answer / 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

More AngularJS Interview Questions

What is the main purpose of find index in angularjs, and what does it return if no value is found?

0 Answers  


What is shared module?

0 Answers  


What is deep linking in angular 2?

0 Answers  


How does the dom work?

0 Answers  


Why is mvc used?

0 Answers  


What is data binding in angular 7?

0 Answers  


How to use styleurls and styles in angular?

0 Answers  


How to define multiple restrict options on a directive in angularjs?

0 Answers  


What is angularjs prefixes $ and $$?

0 Answers  


What do you understand by controllers in angular?

0 Answers  


What is the difference between onnginit() and constructor() of a component?

0 Answers  


Explain the component directory structure of angular 4?

0 Answers  


Categories