Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is di (dependency injection) and how an object or function can get a hold of its dependencies?



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

Post New Answer

More AngularJS Interview Questions

What is module ts in angular?

1 Answers  


Can you explain factory method in angularjs?

1 Answers  


What is ngmodel in angular?

1 Answers  


How to set http request header in angular 4?

1 Answers  


What is subscript method in angular?

1 Answers  


In which language, angularjs is written?

1 Answers  


What is cdk in angular?

1 Answers  


What is router imports?

1 Answers  


What is looping in angularjs?

1 Answers  


What are interceptors in angular 4?

1 Answers  


What are different states of a form in AngularJS?

1 Answers  


Explain AngularJS scope life-cycle?

1 Answers  


Categories