Is there another way to subscribe to the ionRefresh event of the <ion-refresher>
?
Why does the ion-refresher-content have the event instead of the ion-refresher ??
MyPage Template
<ion-content>
<ion-refresher>
<ion-refresher-content #refresher></ion-refresher-content>
</ion-refresher>
</ion-content>
MyPage class
@Component({...})
export class MyPage(){
@ViewChild('refresher') refresher;
ionViewDidLoad(){
this.refresher.r.ionRefresh.subscribe();
}
}
ion-refresher component source:
https://github.com/driftyco/ionic/tree/master/src/components/refresher