What is factory method in angular.js?



What is factory method in angular.js?..

Answer / Chetan Jaiswal

In AngularJS, a factory is a function that creates and returns an object. It's used to define services. Factories can be useful when you need to perform complex operations during service creation.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

What is the use of polyfills.ts file in angular 2?

1 Answers  


What is the use of codelyzer in angular 2?

1 Answers  


Explain The Steps Involved In The Boot Process For AngularJS?

1 Answers  


What is the function of the $timeout service?

1 Answers  


Which is the first argument typically passed to a node.js callback handler?

1 Answers  


What is the role of $routeprovider in angularjs?

1 Answers  


What is latest version of angularjs?

1 Answers  


Which of the following directive is used to initialize an angular app?

1 Answers  


What is the difference between a link and compile in angular?

1 Answers  


What is ng controller in angularjs?

1 Answers  


What are components in angular?

1 Answers  


Explain $event in angular 5?

1 Answers  


Categories