mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00: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:
parent
12b6deb1ce
commit
9f2aaca65b
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue