angular-vs-repeat icon indicating copy to clipboard operation
angular-vs-repeat copied to clipboard

Run digest cycle after executing vsScrolledToEnd

Open bodia-uz opened this issue 9 years ago • 2 comments

Currently, angular does not run digest cycle after executing vsScrolledToEnd method. This PR adds $scope.$apply() to run digest cycle after vsScrolledToEnd

bodia-uz avatar Jun 08 '16 13:06 bodia-uz

I agree, I tried to implement "Searching... <Cancel>" display when scrolling, but without $digest cycle being run I never see the message. I set the flag isSearching inside the service and it worked on first search but not when called from vsScrolledToEnd. If this patch isn't incorporated what are alternatives?

ppryor63 avatar Feb 07 '17 02:02 ppryor63

@ppryor63

If this patch isn't incorporated what are alternatives?

Run digest after scope data changed. Example:

function onVSScrolledToEnd() {
  changeScopeData();
  $scope.$applyAsync();
}

bodia-uz avatar Feb 07 '17 13:02 bodia-uz