diff --git a/src/auto/injector.js b/src/auto/injector.js index ea154c48dd87..75e377a56142 100644 --- a/src/auto/injector.js +++ b/src/auto/injector.js @@ -762,8 +762,7 @@ function createInjector(modulesToLoad) { : getService(key) ); } - if (!fn.$inject) { - // this means that we must be an array. + if (isArray(fn)) { fn = fn[length]; }