mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-10 07:44:43 +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'];
|
* tmpFn.$inject = ['$compile', '$rootScope'];
|
||||||
* injector.invoke(tempFn);
|
* injector.invoke(tmpFn);
|
||||||
*
|
*
|
||||||
* // To better support inline function the inline annotation is supported
|
* // To better support inline function the inline annotation is supported
|
||||||
* injector.invoke(['$compile', '$rootScope', function(obfCompile, obfRootScope) {
|
* injector.invoke(['$compile', '$rootScope', function(obfCompile, obfRootScope) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue