What is singleton class in angular?



What is singleton class in angular?..

Answer / Sachin Babu

A Singleton service in AngularJS is a special type of service which is instantiated only once per injector. It ensures that every request for the same service instance results in the same object being returned.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

Is there a way to make angularjs load partials in the beginning and not at when needed?

1 Answers  


Is angularjs used for backend?

1 Answers  


Doadd(1,2) doadd(1,2,3,4) use the above arguments to sum the value. Using without any parameter receive throught the function.?

1 Answers  


What are the advantages of using angular 2 over angular 1?

1 Answers  


Explain how logs are maintained in angularjs?

1 Answers  


What are observables in angular 2?

1 Answers  


Why do we use ngoninit in angular?

1 Answers  


How to get user input from a template reference variable?

1 Answers  


What are dsl animation functions in angular js. List them.

1 Answers  


What is the global api in angularjs?

1 Answers  


Is mvc front end or backend?

1 Answers  


How to starting angular 4 apps using ionic 3 cli commands?

1 Answers  


Categories