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


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...

    Blogger Comment
    Facebook Comment
SQL Server NodeJs TypeScript JavaScript Angular SQL Server My Book