以下是代码:
<ion-refresher (ionRefresh)="doRefresh($event)">
<ion-refresher-content pullingIcon="arrow-dropdown" pullingText="{{ 'PULL_TO_REFRESH' | translate }}" refreshingSpinner="circles" refreshingText="{{ 'REFRESHING' | translate }}">
</ion-refresher-content>
</ion-refresher>
但是没有显示,任何人都知道这是什么问题? 我的离子信息:
cli packages:
@ionic/cli-plugin-cordova : 1.5.0 (/Users/nulra/Downloads/proj3/node_modules/@ionic/cli-plugin-cordova)
@ionic/cli-plugin-ionic-angular : 1.4.0 (/Users/nulra/Downloads/proj3/node_modules/@ionic/cli-plugin-ionic-angular)
@ionic/cli-utils : 1.6.0 (/Users/nulra/Downloads/proj3/node_modules/@ionic/cli-utils)
ionic (Ionic CLI) : 3.6.0 (/Users/nulra/Downloads/proj3/node_modules/ionic)
global packages:
Cordova CLI : 7.0.1
local packages:
@ionic/app-scripts : 2.0.2
Cordova Platforms : browser 4.1.0 ios 4.4.0
Ionic Framework : ionic-angular 3.5.2
doRefresh函数:
doRefresh(refresher) {
setTimeout(() => {
refresher.complete();
}, 2000);
setTimeout(() => {
this.navCtrl.setRoot(this.navCtrl.getActive().component);
}, 2000);
}
之前有任何想法或有人遇到过同样的问题吗?感谢〜