I know that in angular2 I can disable the button with [disable] , for example:
<button [disabled]="!isValid" (click)="onConfirm()">Confirm</button>
but can I do this with [ngClass] or [ngStyle] ? For example:
<button [ngStyle]="{disabled : !isValid}" (click)="onConfirm()">Confirm</button>
Thank.
html angular angular2-template angular2-forms
Nir Schwartz Feb 21 '16 at 11:12 2016-02-21 11:12
source share