@Ibernato93 wrote:
Hello to all.
I am developing an app that has a 4 tabs
This is the html page<ion-tabs> <ion-tab-bar slot="bottom"> <ion-tab-button tab="profilo"> <ion-icon name="person-sharp"></ion-icon> <ion-label>Profilo</ion-label> </ion-tab-button> <ion-tab-button tab="chat"> <ion-icon name="chatbubble-sharp"></ion-icon> <ion-label>Chat</ion-label> </ion-tab-button> <ion-tab-button tab="random"> <ion-icon name="search-sharp"></ion-icon> <ion-label>Trova</ion-label> </ion-tab-button> <ion-tab-button tab="dintorni"> <ion-icon name="compass"></ion-icon> <ion-label>Scopri</ion-label> </ion-tab-button> </ion-tab-bar> </ion-tabs>
I need to send a request to the server every 5 seconds to get data.
I want to put this call in the main tab (TabsPage) and then pass the data obtained in the TabChat.
Is it possible to do this or do I have to insert the call to the server in each tab?So the question is this: how do I pass a data from the tabPage to the tabChat?
Posts: 5
Participants: 2