ibspoof / ng-iScroll

AngularJS (1.2+) directive that enables iScroll 5.x to work
143 stars 72 forks source link

Pull to refresh up / down #27

Open anshulgithub opened 10 years ago

anshulgithub commented 10 years ago

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

Ross-Rawlins commented 9 years ago

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.