我有一个输入字段是强制性的,以便进入下一页无法弄清楚如何验证输入(名称)...在线搜索并尝试了各种方法但无济于事...
任何帮助高度赞赏...
<form>
<div>
<div class="form-group" style="width:50%">
<label class="label label-info" for="Name">Enter Name:</label>
<input [(ngModel)]="Name" class="form-control" required type="text"
name="Name" id="Name" />
</div>
<button kendoButton id="btnSearch" [primary]="true"
(click)="redirect()">Next</button>
</div>
</form>