What is the factory method?



What is the factory method?..

Answer / Nidhi Saxena

Factory in AngularJS is a service that returns an object from a function. This allows us to create custom services and manage dependencies.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

How to get user input from the $event object?

1 Answers  


What is the difference between an annotation and a decorator in angular?

1 Answers  


What is dependency injection (di) in angular?

1 Answers  


What exactly is angularjs?

1 Answers  


Is angular material responsive?

1 Answers  


What is npm start?

1 Answers  


What is async pipe in angular?

1 Answers  


How to handle xss or csrf attacks in angular 4 ?

1 Answers  


What are ngModel and how do we represent it?

1 Answers  


What is the singleton pattern? How does angular use it?

1 Answers  


Can we have nested controllers in AngularJS?

1 Answers  


Explain validations done in angularjs?

1 Answers  


Categories