【发布时间】:2017-11-01 16:26:27
【问题描述】:
我正在尝试在按钮上使用 *ngIf 条件,以便在文本输入区域为空时禁用它,但似乎没有直接的方法来访问该输入值。
<ion-item>
<ion-label fixed>Venue</ion-label>
<ion-input type="text" id="venue" [(ngModel)]="event.venue" class="form-control" maxlength="22" required></ion-input>
</ion-item>
<button ion-button block id="addEventButton" *ngIf="//not sure what to do here// " (click)="addEvent();">Add Event</button>
【问题讨论】:
标签: ionic2 angular2-forms disabled-control