4 ms·
There's a better way. Anywhere Angular expects a function it will take an array as well. The array can be the usual list of dependencies and a function. Here
by michaelw 14y ago
There's a better way. Anywhere Angular expects a function it will take an array as well. The array can be the usual list of dependencies and a function.
Here's a working version: http://jsbin.com/onevaz/1/ http://jsbin.com/onevaz/1/
For what it's worth, I agree that the docs need to reflect this.