0
When I change tab, and go back to the old tab, which contains the ion-select, the field is set null, with nothing marked, even if the page continues loading according to the populated variable.
<ion-header color="primary">
<ion-navbar>
<ion-title>Planilha</ion-title>
<ion-item color="primary">
<ion-label>Períodos</ion-label>
<ion-select [(ngModel)]="periodoSelecionado" (ionChange)="filtraPeriodo()">
<ion-option *ngFor="let p of periodos" [value]="p">{{p.nome}}</ion-option>
<b>p.nome</b>
</ion-select>
</ion-item>
</ion-navbar>
<ion-searchbar color="primary" (ionInput)="getItems($event)"></ion-searchbar>
</ion-header>
In this case, when I change the tab, the p.name does not reload the moment I return to the tab. Only if I mark it again.
I recommend that more people have access to your question, ask the question in Portuguese. Or put this question on the Stackoverflow website.com
– Alexandre Cavaloti
Yes. I didn’t see that it was in Portuguese.
– SauloLauers