10000 docs($interval): improve fn description · Nikhil22/angular.js@e9a4de0 · GitHub
[go: up one dir, main page]

Skip to content

Commit e9a4de0

Browse files
jannickfahlbuschgkalpak
authored andcommitted
docs($interval): improve fn description
If no additional arguments are passed, the function is called with the current iteration count. Closes angular#15503
1 parent ce8abac commit e9a4de0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ng/interval.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ function $IntervalProvider() {
3333
* appropriate moment. See the example below for more details on how and when to do this.
3434
* </div>
3535
*
36-
* @param {function()} fn A function that should be called repeatedly.
36+
* @param {function()} fn A function that should be called repeatedly. If no additional arguments
37+
* are passed (see below), the function is called with the current iteration count.
3738
* @param {number} delay Number of milliseconds between each function call.
3839
* @param {number=} [count=0] Number of times to repeat. If not set, or 0, will repeat
3940
* indefinitely.

0 commit comments

Comments
 (0)
0