Created
August 9, 2013 00:17
-
-
Save rodyhaddad/6190061 to your computer and use it in GitHub Desktop.
Angular Basic setInterval
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.value("ngBasicInterval", function (fn, delay) { | |
(function repeat() { | |
$timeout(fn, delay).then(repeat); | |
}()); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment