angular-vs-repeat
angular-vs-repeat copied to clipboard
Run digest cycle after executing vsScrolledToEnd
Currently, angular does not run digest cycle after executing vsScrolledToEnd method. This PR adds $scope.$apply() to run digest cycle after vsScrolledToEnd
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
If this patch isn't incorporated what are alternatives?
Run digest after scope data changed.
Example:
function onVSScrolledToEnd() {
changeScopeData();
$scope.$applyAsync();
}