2017-08-18 11 views
1

選択されたすべてのオプションが、私はfirebaseと人口を選択し作成しました:選択にイオン2動の選択、私はイオン2を使用しています自動的に

 <ion-select formControlName="potentialPet"> 
     <ion-option *ngFor="let potentialPet of potentialPets | async" 
       value="potentialPet.name">{{potentialPet.name}}</ion-option> 

    </ion-select> 

を私は1つのオプションchoosing one optionを選択するが、その後すべてが選択されています。 options

イオンオプション値に関連する問題のようです。

ありがとうございました。

答えて

2

値が結合可能なので、それだ

<ion-select formControlName="potentialPet"> 
     <ion-option *ngFor="let potentialPet of potentialPets | async" 
       [value]="potentialPet.name">{{potentialPet.name}}</ion-option> 

    </ion-select> 
+0

に変更する必要があります!ありがとう! – alvardo

関連する問題