var promise = $timeout(someUpdateFunction, 2000);
    
$scope.$on('$destroy', function(){
    $timeout.cancel(promise);
});

Meta

Created:

Updated: 12/15/2015 23:12