What are services in javascript?



What are services in javascript?..

Answer / Rekha Kumari

In JavaScript, a service is a function or an object that provides some specific functionality to other parts of an application. Services can be injected into controllers and directives to centralize code and make it reusable.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

When creating a directive, it can be used in several different ways in the view. Which ways for using a directive do you know? How do you define the way your directive will be used?

1 Answers  


Why to use AngularJS?

1 Answers   CTS, SLK Software,


What do you mean by data binding?

1 Answers  


How did you perform validation in angularjs?

1 Answers  


Differentiate between angular and angularjs.

1 Answers  


What is the new in angular 7?

1 Answers  


What is the use of interceptors in angular 4?

1 Answers  


What is ngzone run outside angular 2?

1 Answers  


What is the purpose of a filter in angular?

1 Answers  


Explain service worker in reference to angular js?

1 Answers  


Who created angular js ?

1 Answers  


What is lazy loading and how to enable lazy loading in angular 2?

1 Answers  


Categories