Dependency injection is a software design pattern in which one or more dependencies (or services) are injected, or passed by reference, into a dependent object. Reasons for using Dependency Injection Decoupling Dependency injection makes your modules less coupled resulting in a more maintainable codebase. Easier unit testing Instead of using hardcoded dependencies you can pass them into the module


{{#tags}}- {{label}}
{{/tags}}