import {IonicApp, IonicView} from 'ionic/ionic'; import {SinkPage} from '../sink-page'; @IonicView({ template: ` Pull to Refresh {{item.title}} ` }) export class PullToRefreshPage extends SinkPage { constructor(app: IonicApp) { super(app); this.items = []; for(let i = 90; i < 100; i++) { this.items.push({ title: i }); } this.i = 90; } doRefresh(refresher) { console.log('DOREFRESH', refresher) this.items.unshift({ title: (--this.i) }); setTimeout(() => { refresher.complete(); }, 1500) } doStarting() { console.log('DOSTARTING'); } doPulling(amt) { console.log('DOPULLING', amt); } }