AngularJS Question:
Download Questions PDF

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


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 Interview Questions And Answers PDF

Previous QuestionNext Question
What is dependency injection in AngularJS?What are the advantages of using Angular.js framework?