ionicthemes / ionic-wordpress-integration

Ionic Wordpress starter app 😎. Learn how to communicate your ionic app with Wordpress REST API with this starter and detailed tutorial.
https://ionicthemes.com/tutorials/about/ionic-wordpress-integration
265 stars 126 forks source link

How do I add a working pull to refresh feature? #8

Closed sayseee closed 6 years ago

sayseee commented 6 years ago

Hello,

How do I add the pull to refresh feature? Am using this code and it seems not to be loading new posts


  doRefresh(refresher) {
    console.log('Begin async operation', refresher);

    setTimeout(() => {
      console.log('Async operation has ended');
      refresher.complete();
    }, 2000);
  }

Any ideas?

djabif commented 6 years ago

Hello @sayseee you can find a ionic 3 starter app with lots of features in https://ionicthemes.com/product/ion2fullapp-full-ionic2-app-template-elite-version

djabif commented 6 years ago

@sayseee you can also find the refresher or pull to refresh documentation in Ionic Framework Ui Components page: https://ionicframework.com/docs/api/components/refresher/Refresher/