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?

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


Please Help Members By Posting Answers For Below Questions

Angularjs dependency injection of value inside of the module.config?

868


What is the latest version of angular?

956


What is a dynamic route in angularjs and how do you implement it?

852


Which version you are using js?

937


How can primeng be used with angular2?

912


How an object or function can get a hold of its dependencies?

839


What is the latest angular?

795


How to use primeng in angular 4?

934


Give the example of angularjs strings?

859


How to get and log an error in angular 4?

860


How to implement a datagrid table with angular 2 and primeng?

881


How to create angularjs filter which outputs html?

849


How to enable html5 mode in angular 1.x?

909