• +91 9723535972
  • info@interviewmaterial.com

Angular Interview Questions and Answers

Related Subjects

Question - What is DI (Dependency Injection) and how an object or function can get a hold of its dependencies?

Answer - DI or Dependency Injection is a software design pattern that deals with how code gets hold of its dependencies. In order to retrieve elements of the application which is required to be configured when the module gets loaded, the operation "config" uses dependency injection. 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

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners