What is services in angular.js?



What is services in angular.js?..

Answer / Sameer Kumar

"Services in AngularJS are objects that hold functions or data to be shared across your application. Services are often used to encapsulate business logic and provide a single point of access for multiple components. To create a service, you use the .service() method provided by AngularJS: myApp.service('MyService', function() { ... });

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

What is a component angular?

1 Answers  


What are differences between templateurl and template?

1 Answers  


What is ng-init in angularjs?

1 Answers  


What is data binding and its types?

1 Answers  


What is pipe in networking?

1 Answers  


How to send and set cookies in angular 4?

1 Answers  


What is ngoninit in angular?

1 Answers  


Is angular 7 is stable?

1 Answers  


What is a service angular?

1 Answers  


Is google using angular?

1 Answers  


What is a template variable. How would you use it?

1 Answers  


How can you add an active class to a selected element in a list component?

1 Answers  


Categories