Explain what is a factory method in angularjs?



Explain what is a factory method in angularjs?..

Answer / Aviral Pratap Singh

A factory method is a special function in AngularJS that creates an object. It's often used to create services, values, or constants. The created object can be returned from the function and can also have dependencies injected into it.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

How to setup and install ionic framework with angular 4?

1 Answers  


What is aot?

1 Answers  


What are differences between angular 4 and angular 2?

1 Answers  


What are the differences between service and factory methods?

1 Answers  


Explain the difference between angular.js and backbone.js?

1 Answers  


What is the digest cycle in angularjs?

1 Answers  


Difference between promises and observable?

1 Answers  


What is the use of viewchild in angular?

1 Answers  


Explain The Directives Ng-If, Ng-Switch, And Ng-Repeat?

1 Answers  


Why webpack is used in angular?

1 Answers  


What is a cookie?

1 Answers  


what is angular expression?

1 Answers  


Categories