Parameters with Tabs

Hello !

I don’t understand one thing with tabs.
I create a dynamic tabs and put a rootParams.

    <ion-tab *ngFor="let journee of journees" tabTitle="{{}}" [root]="rootDetail" [rootParams]="journee"></ion-tab>

When I click the first time on tab, the parameters are send.

My problem is when I click on the active tab. The parameters sent are empty so the data on my page are missing.

I don’t understand this behavior.

Did I misread the documentation ?


To avoid problems like this, I prefer avoiding NavParams for any situation other than pushing a new page onto the navigation stack. Instead, I store whatever information is needed in a shared context service and use that to communicate instead.

Thank you for your idea but I resolve my problem

It was a problem in a ionic-angular component tabs !