I\'m new to AngularJS and I would like to understand more about the dependencies that are being injected by default. While reading through code I\'ve noticed that sometimes
Just to provide a different sort of answer, as to the how inline/implicit dependencies work in AngularJS. Angular does a toString
on the provided function and parses the parameter names from the string which is produced. Example:
function foo(bar) {}
foo.toString() === "function foo(bar) {}"
References:
source code
AngularJS Dependency Injection - Demystified