简体   繁体   中英

IONIC2 how i reload page

In Ionic2 Page when i'm refreshing the page through location.reload() method,and check the application in android device, the page is displaying with 4-5 second blank white page and then location.reload() method is working. How can i solve this issue? Can anyone suggest me to solve this.

我有一个非常懒惰的解决方案,但是它对我有用:

this.navCtrl.setRoot(this.navCtrl.getActive().component);

Add Loader

import { LoadingController, Loading} from 'ionic-angular';

showLoading() { this.loading = this.loadingCtrl.create({ content: 'Please wait...' }); this.loading.present(); }

So that user will feel data is loading.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM