Angular2 disable button

前端 未结 10 1757
萌比男神i
萌比男神i 2020-12-02 10:03

I know that in angular2 I can disable a button with the [disable] attribute, for example:

10条回答
  •  时光取名叫无心
    2020-12-02 10:43

    If you have a form then the following is also possible:

    Demo here: http://plnkr.co/edit/Xm2dCwqB9p6WygrquUGh?p=preview&open=app%2Fapp.component.ts

提交回复
热议问题