Using $scope.$digest() As A Performance Optimization In AngularJS