Re:Demystifying AngularJS' dependency injection
by vectorpush on Sunday February 02, 2014 @11:27PM
(#7168838)
Dependency injection: A more hip way to say "function parameters".
Not really. Matching the identifier is simply an optional convenience for the developer, the "dependency injection" refers to the mechanism that allows you to configure, mock, or replace the "function parameter" before the framework injects it into scope.
Not really. Matching the identifier is simply an optional convenience for the developer, the "dependency injection" refers to the mechanism that allows you to configure, mock, or replace the "function parameter" before the framework injects it into scope.