<form #f="ngForm" (ngSubmit)="onSubmit(f)" novalidate>
<input required name="uri" [(ngModel)]="data">
<button [disabled]="!f.valid">Submut</button>
</form>
//disable button based on condition angular
<button type="submit" [disabled]="!validate || !SAForm.valid">Add</button>
template: `<button ejs-button [disabled]="true">Disabled</button>`