what is di (dependency injection) and how an object or function can get a hold of its dependencies?
Answer Posted / 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 |
Post New Answer View All Answers
Angularjs dependency injection of value inside of the module.config?
What is the latest version of angular?
What is a dynamic route in angularjs and how do you implement it?
Which version you are using js?
How can primeng be used with angular2?
How an object or function can get a hold of its dependencies?
What is the latest angular?
How to use primeng in angular 4?
Give the example of angularjs strings?
How to get and log an error in angular 4?
How to implement a datagrid table with angular 2 and primeng?
How to create angularjs filter which outputs html?
How to enable html5 mode in angular 1.x?