1<button type="submit" [disabled]="!name || !email" class="btn btn-default" (click)="getValues($event, name, email)">Add Data</button>
2
1<input type="text" class="form-control" [(ngModel)]="name" id="name" placeholder="John Doe">
2
3<input type="email" class="form-control" [(ngModel)]="email" id="email" placeholder="john.doe@example.com">
4