Disable Button in Angular 2

后端 未结 2 1023
忘了有多久
忘了有多久 2021-02-06 20:17

I want if the input \'Contract type\' is empty, the button \'Save\' is not clickable

Save button:

2条回答
  •  北荒
    北荒 (楼主)
    2021-02-06 20:39

    I tried use [disabled]="!editmode" but it not work in my case.

    This is my solution [disabled]="!editmode ? 'disabled': null" , I share for whom concern.

    
    

    Stackbliz https://stackblitz.com/edit/angular-af55ep

提交回复
热议问题