Changing a route parameter

Asked

Viewed 20 times

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?

  • Actually, I just wanted to send the parameters again, to update the data on the page

  • 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?

  • I will try to simplify, by entering a page that contains two tabs, I make an appointment of pagador. I already pass this data as parameters with the rootparams, but a certain button updates this data, but the parameter does not update together

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.