Hey everyone,
I successfully implemented a Refresher (ion-refresher) and got it via a ViewChild to be able to call its methods on typescript-side. Now I’d really like to trigger the animation and loading process behind if the page loaded to give the user the feedback that it’s fetching updates by itself… but I couldn’t find the proper method to call. Currently I do this:
@ViewChild(Refresher) refresher: Refresher;
ionViewDidEnter() {
this.refresher._beginRefresh()
}
loadPosts(){
this.blogProvider.getPostsFromBackend()
.then(() => this.refresher.complete())
.catch(err => console.log(err))
}
It does work some 50% - it triggers the loadPost() method and animates the expansion of the space at the top. However the spinner animation and “Refreshing…” don’t show up.
Any ideas to get it workin’?