diff options
| author | Josh Kurz | 2013-12-12 01:39:40 -0500 | 
|---|---|---|
| committer | Pete Bacon Darwin | 2013-12-19 13:46:30 +0000 | 
| commit | 277a5ea05d50fb27243b98570c3ca9394b31e935 (patch) | |
| tree | e6b25127fef2b7d6f78b94d56c7c8a663467253f /css | |
| parent | 9865a7c0ad678fa6a3daa2719e37d94aeb62f67b (diff) | |
| download | angular.js-277a5ea05d50fb27243b98570c3ca9394b31e935.tar.bz2 | |
docs($interval): remind the developer to destroy their intervals
It is essential that users of `$interval` destroy the interval when they are finished.
Otherwise you can get memory leaks.
Often `$intervals` are used in directives or controllers and developers don't think
about what happens when the component is destroyed.
If a directive/controller scope is destroyed, then the $interval should be destroyed as well.
This could cause some issues with developers who assume that the interval will be cleared
for them when the scope is destroyed.
Closes #5377
I believe that the library could/should handle this as well, but thats another issue.
Diffstat (limited to 'css')
0 files changed, 0 insertions, 0 deletions
