diff --git a/src/ng/interval.js b/src/ng/interval.js index 2ad3a7f158a0..61f1349fdfa3 100644 --- a/src/ng/interval.js +++ b/src/ng/interval.js @@ -24,6 +24,12 @@ function $IntervalProvider() { * In tests you can use {@link ngMock.$interval#methods_flush `$interval.flush(millis)`} to * move forward by `millis` milliseconds and trigger any functions scheduled to run in that * time. + * + *
+ * **Note**: The interval craeted by this service is not cleared during the $scope.$destroy() event. + * The developer should take this into consideration and make sure to always cancel the interval + * inside a broadcasted 'destroy' event. + *
* * @param {function()} fn A function that should be called repeatedly. * @param {number} delay Number of milliseconds between each function call.