需要在单击“提交”按钮时传递选定单选按钮的值
<!--Starts Location Select Popover -->
<ion-list>
<ion-list-header>
<h5> Select Location</h5>
</ion-list-header>
<ion-item *ngFor="let store of storeLocations">
<ion-label>{{store?.storeName}}</ion-label>
<input type="radio" slot="end" value="{{store}}" />
</ion-item>
<ion-button expand="block" (click)="dismissLocationSelectPopover(store)">Submit Location
</ion-button>
</ion-list>
<!--Ends Location Select Popover -->
1条答案
按热度按时间jw5wzhpr1#
不支持
[(ngModel)]
。最好改用(click)
。HTML格式
技术支持