Pinger interview question

difference between $scope.apply() and $scope.digest()