Is angularjs a factory singleton?



Is angularjs a factory singleton?..

Answer / Aditi Chandra

Yes, services in AngularJS are singletons by default. When you register a service, Angular creates one instance of it and injects that same instance wherever the service is required.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

Is angular still popular?

1 Answers  


What is the factory method in angularjs?

1 Answers  


Explain class and inheritance in js?

1 Answers  


What is a router in angular?

1 Answers  


What are ui frameworks?

1 Answers  


What is tap in angular?

1 Answers  


List some cons or disadvantages of using angularjs?

1 Answers  


What is angular json file?

1 Answers  


What are AngularJS features? 15

1 Answers  


How would you make an angularjs service return a promise? Write a code snippet as an example

1 Answers  


What is pathmatch in angular?

1 Answers  


What is *ngfor directive used for?

1 Answers  


Categories