Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. doRefresh(refresher?) {
  2.  
  3. let d = get_data();
  4.  
  5. if (d == "d"){
  6. refresher.complete();
  7. }else{
  8. console.log('value is not d')
  9. refresher.complete()
  10. }
  11. }
  12.  
  13. ionViewDidLoad(){
  14. this.doRefresh();
  15. }
  16.  
  17. <ion-refresher (ionRefresh)="doRefresh($event);">
  18. <ion-refresher-content
  19. pullingText="Pull to refresh" pullingIcon="arrow-dropdown"
  20. refreshingSpinner="circles"
  21. refreshingText="..fetching">
  22. </ion-refresher-content>
  23. </ion-refresher>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement