I am looking for a way to execute code when after I add changes to a $scope variable, in this case $scope.results. I need to do this in order to call some legacy code that r
interval works for me,for example:
interval = $interval(function() { if ($("#target").children().length === 0) { return; } doSomething(); $interval.cancel(interval); }, 0);