Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Problem with select Options

$
0
0

@caiomoura1994 wrote:

In first moment can I see all Options!

But next that I change by page the Options stay this form

.html

 <form (ngSubmit)="goToResultadoExames2()">
      <ion-item>
        <ion-label>Perfis</ion-label>
        <ion-select id="idClient" [(ngModel)]="todo.title" name="title">
          <ion-option *ngFor = " let dataId of data " [value]= dataId >
             {{dataId['apelido']}}, {{dataId['user']}}
          </ion-option>
        </ion-select>
      </ion-item>
      <p style="color: red;font-size: large;"  >{{error}}</p>
      <button ion-button type="submit" >Ver Resultados</button>
    </form>

.ts

{
      this.data = userService.userDataFilhos //retun Dict
      this.dataArray=[]
      for (var i in this.data) {
        this.dataArray.push(this.data[i])
      }
      this.data=this.dataArray
}

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>