Ionic 2复习不适用于IFRAME

时间:2017-10-04 17:58:36

标签: iframe ionic-framework ionic2 pull-to-refresh

我正在使用IONIC 2开发一个Web应用程序。主页组件包含一个全宽和高的iframe。当我在IFRAME外面拉下来时,Refresher工作正常,但是当我拉下IFRAME刷新应用程序然后刷新它不起作用时,

所以我希望当任何用户拉下IFRAME时,Refresher也应该工作。

任何形式的帮助将不胜感激

提前致谢 干杯:)

1 个答案:

答案 0 :(得分:0)

        I did not use ion-refresher with IFRAME but i'm using this ion-refresher 
        in a page
        like this at top of page ---
        ===== this is a html part ====
        <ion-refresher (ionRefresh)="refreshFollowFeed($event)">
            <ion-refresher-content></ion-refresher-content>
          </ion-refresher>

    ========= ts part ===========

     refreshFollowFeed(event) {
        console.log('here your api part');
        === and add setTimeout section  where api hit successfully.
        setTimeout(() => {
          event.complete();
        }, 2000);
  }