Explain factory method in angularjs?



Explain factory method in angularjs?..

Answer / Ritesh Srivastava

A factory in AngularJS is a function that returns an object. It is used to create and return services, which can be injected into other parts of the application. Factories provide a way to instantiate complex objects.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

What is the difference between a unit and end-to-end (e2e) test in angularjs?

1 Answers  


What do you understand by validation of data in angularjs?

1 Answers  


What is difference between ng if and ng show?

1 Answers  


What is buffer (window storage)?

1 Answers  


What is internationalization in angularjs?

1 Answers  


What is npm command?

1 Answers  


How to handle mobile browsers/devices events in AngularJS?

1 Answers  


What are angular prefixes $ and $$?

1 Answers  


What is @viewchild in angular?

1 Answers  


What is pure pipe?

1 Answers  


How to access jQLite or jQuery with AngularJS?

1 Answers   SLK Software,


Does angular support nested controllers?

1 Answers  


Categories