Skip to content

Instantly share code, notes, and snippets.

@danielthiel
Last active January 2, 2016 23:09
Show Gist options
  • Save danielthiel/8374577 to your computer and use it in GitHub Desktop.
Save danielthiel/8374577 to your computer and use it in GitHub Desktop.
for rootScope some global variable if you don't use it in AngularJS context
clearInterval($rootScope.last_tick)
$rootScope.last_tick = setIntervall(self.updateFunction, 2000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment