disable open button until code is in box

This commit is contained in:
Zakary Timson 2019-08-25 10:32:27 -04:00
parent 1681c012ed
commit ae5595ac8a

View File

@ -10,7 +10,7 @@
<form class="input-group">
<input type="text" class="form-control" [(ngModel)]="code" name="code" placeholder="Code">
<div class="input-group-append">
<button class="btn btn-danger" [routerLink]="['/', code]" style="background-color: #dd0330">Open</button>
<button class="btn btn-danger" [routerLink]="['/', code]" style="background-color: #dd0330" [disabled]="!code">Open</button>
</div>
</form>
</div>