0
I have an app Ionic in which I use tabs with two different pages and I have to pass parameters to them.
<ion-tabs #myTabs color="credisis" *ngIf="pagador">
<ion-tab tabIcon="person" tabTitle="Pagador eletrônico" [root]="pagador ? tab1Root : tabTestRoot" [rootParams]="[pagador, dda]"></ion-tab>
<ion-tab tabIcon="people" tabTitle="Agregados" [root]="pagador ? tab2Root : tabTesteRoot" [rootParams]="pagador ? pagador.agregados : ''"></ion-tab>
</ion-tabs>
The user can click a button and update this data. However, the data only updates on the page that contains the tabs, and not on the pages tabs call. How can I fix this?
You want when clicking a button to be redirected and passed parameters to another page?
– alan
Actually, I just wanted to send the parameters again, to update the data on the page
– Gabriel.H
But, for me it is not clear when and how you want to send the parameters? you want to send by clicking on the tab menu? or when clicking some button?
– alan
I will try to simplify, by entering a page that contains two
tabs
, I make an appointment ofpagador
. I already pass this data as parameters with therootparams
, but a certain button updates this data, but the parameter does not update together– Gabriel.H