docs(injector): fix typo in inlining example

The actual invoke call in the documentation was referring to the non-existent tempFn instead of tmpFn
This commit is contained in:
@fbiville 2013-04-17 02:35:17 +03:00 committed by Pete Bacon Darwin
parent 12b6deb1ce
commit 9f2aaca65b

View file

@ -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) {