ion-select does not recharge when I change tab

0

When I change the tab, and return to the old tab, which contains the ion-select, the field is set to null, with nothing marked, even though the page continues to load 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 recharge the moment I go back to the tab. Only if I redial it.

    
asked by anonymous 18.09.2017 / 16:18

0 answers