From ed55346be7b12e2665f5a6759b1f00ad861fae76 Mon Sep 17 00:00:00 2001 From: @fbiville Date: Wed, 17 Apr 2013 02:35:17 +0300 Subject: docs(injector): fix typo in inlining example The actual invoke call in the documentation was referring to the non-existent tempFn instead of tmpFn --- src/auto/injector.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/auto/injector.js') diff --git a/src/auto/injector.js b/src/auto/injector.js index 49b7a429..b3444219 100644 --- a/src/auto/injector.js +++ b/src/auto/injector.js @@ -225,7 +225,7 @@ function annotate(fn) { * // ... * }; * tmpFn.$inject = ['$compile', '$rootScope']; - * injector.invoke(tempFn); + * injector.invoke(tmpFn); * * // To better support inline function the inline annotation is supported * injector.invoke(['$compile', '$rootScope', function(obfCompile, obfRootScope) { -- cgit v1.2.3