Search code examples
javascriptjqueryangularjspull-to-refreshmobile-angular-ui

AngularJS - Pull to refresh


Does anyone know how to do a pull to refresh in a mobile site?

I can see some conflicting issues that could be found from trying to implement this such as Chrome already does this from the browser by default and trying to compensate for Safari rubberbanding/overscrolling on iOS which is extremely annoying.

The project I am currently working on already has Kendo UI and Mobile Angular Frameworks so I don't really want to suggest adding Ionic on top of everything just to get pull to refresh functionality added.

Since I am using Mobile Angular Framework, I thought I should mention that it wouldn't be a full page reload, but a $stateProvider reload if possible, if not it will have to be a full page reload.

Thanks in advance!

EDIT: Just to add to the above, I tried out the mgcrea angular pull to refresh but this didn't work for android chrome and people have also been saying on other posts that the guy who originally built it has abandoned the project.


Solution

  • There is some libraries besides ionic to help with this: https://github.com/mgcrea/angular-pull-to-refresh for instance.