make button disabled if input is empty angular
<button type="submit" [disabled]="!name || !email" class="btn btn-default" (click)="getValues($event, name, email)">Add Data</button>
make button disabled if input is empty angular
<button type="submit" [disabled]="!name || !email" class="btn btn-default" (click)="getValues($event, name, email)">Add Data</button>
make button disabled if input is empty angular
<input type="text" class="form-control" [(ngModel)]="name" id="name" placeholder="John Doe">
<input type="email" class="form-control" [(ngModel)]="email" id="email" placeholder="[email protected]">
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us