Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70754

Ionic-tabs data is not shown after loading from backend

$
0
0

@mdline wrote:

Hello,

I am loading data from backend which takes a while for fetching.
The problem is that the data will not be shown on the initial selected tab (here allPage) after loading.
Only when I switch between the tabs the data will be displayed.
The passed parameters are initialized in “readPersonInfo”.

Here is my code from TabPage

  ngOnInit() {
    this.readPersonInfo();
  }

<ion-tabs selectedIndex="0">
  <ion-tab [root]="allPage" [rootParams]="allParameters" tabTitle="All"></ion-tab>
  <ion-tab [root]="menPage" [rootParams]="menParameters" tabTitle="Men"></ion-tab>
  <ion-tab [root]="womenPage" [rootParams]="womenParameters" tabTitle="Women"></ion-tab>
</ion-tabs>

Here is the code from nested Pages “AllPage”

  ionViewWillEnter() {
    this.info= this.navParams.data.info;
    this.allParameters= this.navParams.data.parameters;
  }

The allParameters are not shown on initial tab.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70754

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>