I have a watch function in my AngularJS application.
$scope.$watch('quartzCrystal', function () {
...
}
However, after some condition (in my example, changing the page at my single-page application) I want to stop that watch (as like clearing timeout).
How can I do that?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…