Why Dependency Injection?

There are basically three ways to describe "Why DI?" as given below.

·         We can create the dependency of components using the new operator.
·         We can look up the dependency of component by referring to a global variable.
·         We can use the dependency for component when we needed.

About Blogger

ANIL SINGH

Hey! I am Anil Singh. I am Active Blogger, Writer and Programmer. I love learning new technologies, programming, blogging and participating the forum discussions more...
http://www.code-sample.com
http://www.code-sample.xyz

    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment

SQL Server NodeJs TypeScript JavaScript Angular SQL Server My Book