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

Same component into ion-tab without reload data

$
0
0

@FlorianB wrote:

Hey,
I'm using ion-tabs, and in my ion tabs i use the same component with the same data like a header.
That's my code to explain my issue

<ion-content>
<my-component><my-component>
  <ion-tabs>
    <ion-tab [root]="tab1Root" [rootParams]="idUser" tabTitle="title" tabIcon="home">
    </ion-tab>
    <ion-tab [root]="tab2Root" [rootParams]="idUser" tabTitle="title" tabIcon="heart">
    </ion-tab>
  </ion-tabs>
</ion-content>

I don't want to reload data in each tab, so my question is How is it possible to use the same components in every tab without reloading data and calling the api ?
Sorry for my English
Thank you

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70904

Trending Articles



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