From 8a7028aafbaff0ba8f37e99056b7a0196ea7c84a Mon Sep 17 00:00:00 2001 From: Pavel Pomerantsev Date: Sun, 20 Jul 2014 23:32:09 +0400 Subject: [PATCH] docs(injector): better document injector.invoke() --- src/auto/injector.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/auto/injector.js b/src/auto/injector.js index e686a0ed9db6..061f82a056af 100644 --- a/src/auto/injector.js +++ b/src/auto/injector.js @@ -191,7 +191,10 @@ function annotate(fn, strictDi, name) { * {@link guide/di $inject Annotation} rules. * @param {Object=} self The `this` for the invoked method. * @param {Object=} locals Optional object. If preset then any argument names are read from this - * object first, before the `$injector` is consulted. + * object first, before the `$injector` is consulted. If `locals` is + * a string, then it's treated as the service's name (might be useful + * for 3rd party libraries which use the smart-injector style for + * providing more debug information). * @returns {*} the value returned by the invoked `fn` function. */