What is a factory method in angularjs?
Answer / Ankur Gupta
A Factory Method in AngularJS is a function that returns an object. It's often used to create complex objects or services that can be injected as dependencies into other parts of the application. The factory method is defined using the $injector service, and it can accept parameters for configuration.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the fundamentals concepts of angular 2?
What is the use of @Input and @Output?
What are scopeless controller in angularjs?
Why do we need provider aliases?
What is if-else-and-then conditions in angular4?
What is the use of lazy loading in angular 6?
How to validate email in angular 4 using formgroup or custom regexp?
Explain component decorators in angular 4?
What angular is doing with bazel compiler?
Give the example of angularjs object?
What are guards in angular 2?
Explain api and how do we exchange the data from client side to server?