Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 9f2aaca

Browse files
@fbivillepetebacondarwin
@fbiville
authored andcommitted
docs(injector): fix typo in inlining example
The actual invoke call in the documentation was referring to the non-existent tempFn instead of tmpFn
1 parent 12b6deb commit 9f2aaca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/auto/injector.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ function annotate(fn) {
225225
* // ...
226226
* };
227227
* tmpFn.$inject = ['$compile', '$rootScope'];
228-
* injector.invoke(tempFn);
228+
* injector.invoke(tmpFn);
229229
*
230230
* // To better support inline function the inline annotation is supported
231231
* injector.invoke(['$compile', '$rootScope', function(obfCompile, obfRootScope) {

0 commit comments

Comments
 (0)