AngularJS Question: Download AngularJS PDF

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

Tweet Share WhatsApp

Answer:

These are the ways that object uses to hold of its dependencies

► Typically using the new operator, dependency can be created.
► By referring to a global variable, dependency can be looked up.
► Dependency can be passed into where it is required.

Download AngularJS PDF Read All 57 AngularJS Questions
Previous QuestionNext Question
What is dependency injection in AngularJS?What are the advantages of using Angular.js framework?