what is di (dependency injection) and how an object or function can get a hold of its dependencies?
Answer / Tanuj Gupta
Dependency Injection (DI) is a design pattern in AngularJS that separates the definition of dependencies from their implementation, allowing for easier testing and modular development. To get a hold of its dependencies, an object or function can be defined as a dependency in the module configuration and injected using constructor injection or controller-as syntax.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is module ts in angular?
Can you explain factory method in angularjs?
What is ngmodel in angular?
How to set http request header in angular 4?
What is subscript method in angular?
In which language, angularjs is written?
What is cdk in angular?
What is router imports?
What is looping in angularjs?
What are interceptors in angular 4?
What are different states of a form in AngularJS?
Explain AngularJS scope life-cycle?