I\'m trying to understand what\'s the difference between $interval and setInterval. I have this test:
Dashboard.prototype.updateTotalAppointments = function(
$interval is a wrap for setInterval AND $apply simultaneous. It make the update of scoped variables to be visible when occours on $interval. Also valid for $timeout