Dependency Injection is a way of making the dependencies of an object available via another object , and these dependencies are usually known as services. These services can be blocks of code, containing different functionalities that can be easily reused in different parts of your project.