title: Angular digest vs apply best practice
body: <p>It seems that one can achieve the same result using two different approaches:</p>
  <pre><code>doSomething();
  $scope.$digest();
  </code></pre>
  <p>or</p>
  <pre><code>$scope.$apply(function() {
    doSomething();
  });
  </code></pre>
  <p>So what are the differences and what to use when?</p>