mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-07 22:37:28 +08:00
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:
committed by
Pete Bacon Darwin
parent
12b6deb1ce
commit
9f2aaca65b
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user