Joined December 2013
·

Tom Chen

Taipei, Taiwan
·
·

Posted to Speeding up AngularJS's $digest loop over 1 year ago

Don't use $scope.$digest directly, instead, use $scope.$apply

$element.on('scroll', function (e) { $scope.$apply(function(){
    $scope.visibleList = getVisibleElements(e);
 }); });
Achievements
80 Karma
0 Total ProTip Views