What is singleton in angularjs?



What is singleton in angularjs?..

Answer / Amit Kumar Srivastava

In AngularJS, a singleton is a service instance that gets created once when the module initializes and remains for the lifetime of the application. Multiple controllers or services can access the same singleton instance.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

How can you decrease the digest cycle time?

1 Answers  


Ln component and service which logic that we have to write?

1 Answers  


What are the types of linking function?

1 Answers  


What is @output in angular?

1 Answers  


What is template angular 2?

1 Answers  


What angularjs 7?

1 Answers  


Explain $watch(), $watchgroup() and $watchCollection() functions of scope?

1 Answers  


What is component?

1 Answers  


What is binding in java?

1 Answers  


What is a directive order?

1 Answers  


Why there are two “destroy” events associated with the termination of scope in angularjs?

1 Answers  


Why use pipes in angular?

1 Answers  


Categories