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

How to reload page everytime when ion-tab is tabbed in ionic 4?

$
0
0

@Haug wrote:

I have a question concerning reloading a page each time when ion-tab is clicked - even if the page is already active. If it’s possible, is it also possible to pass a value to the page?

If searched a lot but couldn’t find a solution.

The code of my ion-tabs looks like this:

<ion-tabs tabbar #myTabs id="myTabs">
   <ion-tab [root]="tab1Root" tabTitle="tab 1" ></ion-tab>
   <ion-tab [root]="tab2Root" tabTitle="tab 2" ></ion-tab>
   <ion-tab [root]="tab4Root" tabTitle="tab 3" ></ion-tab>
   <ion-tab [root]="tab3Root" tabTitle="tab 4" ></ion-tab>
   <ion-tab [root]="tab5Root" tabTitle="tab 5" ></ion-tab>
 </ion-tabs>

I know that ion-tabs can handle (tab)=“function($event)” but this function knows nothing about the tab the user has clicked.

I would like to reload the page all the time a tab is clicked, even the page is already active.

Can someone help?

Thank you so much for your help in advance.

Cheers

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70429

Trending Articles



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