Working PTR

This commit is contained in:
Max Lynch
2015-07-06 08:34:45 -05:00
parent 3d259725a3
commit 083df1a482
7 changed files with 57 additions and 23 deletions

View File

@@ -11,8 +11,12 @@ class MyApp {
constructor() {
console.log('IonicApp Start')
}
doRefresh() {
console.log('DOREFRESH')
doRefresh(refresher) {
console.log('DOREFRESH', refresher)
setTimeout(() => {
refresher.complete();
})
}
doStarting() {
console.log('DOSTARTING');

View File

@@ -2,7 +2,7 @@
<ion-toolbar><ion-title>Pull To Refresh</ion-title></ion-toolbar>
<ion-content>
<ion-refresher (starting)="doStarting()" (refresh)="doRefresh()" (pulling)="doPulling($event, amt)">
<ion-refresher (starting)="doStarting()" (refresh)="doRefresh($event, refresher)" (pulling)="doPulling($event, amt)">
</ion-refresher>
<f></f>
<f></f>
@@ -16,7 +16,6 @@
</ion-view>
<style>
f { display: block; height: 400px; width: 100%; background-color: #387ef5; margin-bottom: 15px; }
ion-refresher { background-color: red; }
#counter {
position: fixed;
top: 0;