ng-iScroll icon indicating copy to clipboard operation
ng-iScroll copied to clipboard

Pull to refresh up / down

Open anshulgithub opened this issue 11 years ago • 1 comments

How we can implement pull to refresh up and down functionality in this version?

anshulgithub avatar Jun 05 '14 11:06 anshulgithub

create a directive that does a call back when ng repeat is complete.

angular.module('Directives.RepeatDone', [])

    .directive('repeatDone', function() {

return function(scope, element, attrs) { if (scope.$last) { // all are rendered scope.$eval(attrs.repeatDone); } } })

then run a function in your controller that refreshes your iscroll when the repeater is complete.

Ross-Rawlins avatar Jan 07 '15 13:01 Ross-Rawlins