diff options
| author | @fbiville | 2013-04-17 02:35:17 +0300 |
|---|---|---|
| committer | Pete Bacon Darwin | 2013-04-17 14:46:53 +0100 |
| commit | ed55346be7b12e2665f5a6759b1f00ad861fae76 (patch) | |
| tree | 5150568c8195b69eea687ba94581ecdc4b09a769 | |
| parent | e31ec1f7eda59fd56fd364d3f40f2f4f011ff7e5 (diff) | |
| download | angular.js-ed55346be7b12e2665f5a6759b1f00ad861fae76.tar.bz2 | |
docs(injector): fix typo in inlining example
The actual invoke call in the documentation was referring to the non-existent tempFn instead of tmpFn
| -rw-r--r-- | src/auto/injector.js | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |
