What is the singleton pattern?



What is the singleton pattern?..

Answer / Yogita

The Singleton Pattern in AngularJS refers to a design pattern that restricts the instantiation of a class and ensures that only one instance exists during the lifetime of an application. This is useful for objects that need to maintain state across an entire application, such as configuration or data repositories.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

what is the difference between one-way binding and two-way binding in angularjs?

1 Answers  


How do you share data between controllers in angularjs?

1 Answers  


What is the scope in angularjs?

1 Answers  


What is stackblitz?

1 Answers  


What is angularjs and what are some of its advantages?

1 Answers  


What is node js good for?

1 Answers  


What is Service in AngularJS?

1 Answers  


What is the difference between $scope and scope in angular?

1 Answers  


Mention what are the characteristics of “scope”?

1 Answers  


Explain $rootscope in angularjs.

1 Answers  


What is ngroute?

1 Answers  


What is the difference between structural directive and attribute directive in angular 7?

1 Answers  


Categories