From cee8801c85492e20664ef8b41b7db0addb46d982 Mon Sep 17 00:00:00 2001 From: Jannick Fahlbusch Date: Tue, 13 Dec 2016 11:56:52 +0100 Subject: [PATCH] docs($interval): improve fn description If no additional arguments are passed, the function is called with the current iteration count. --- src/ng/interval.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ng/interval.js b/src/ng/interval.js index 452c8ee81417..42b69b8933b3 100644 --- a/src/ng/interval.js +++ b/src/ng/interval.js @@ -33,7 +33,8 @@ function $IntervalProvider() { * appropriate moment. See the example below for more details on how and when to do this. * * - * @param {function()} fn A function that should be called repeatedly. + * @param {function()} fn A function that should be called repeatedly. If no additional arguments + * are passed (see below), the function is called with the current iteration count. * @param {number} delay Number of milliseconds between each function call. * @param {number=} [count=0] Number of times to repeat. If not set, or 0, will repeat * indefinitely.