is there any alternative for ng-disabled in angular2?

后端 未结 5 2101
孤独总比滥情好
孤独总比滥情好 2020-12-02 14:03

I am using angular2 for development and was wondering if there is any alternative for ng-disabled in angular2.

For ex. below code is in angularJS:

5条回答
  •  死守一世寂寞
    2020-12-02 14:28

    Yes You can either set [disabled]= "true" or if it is an radio button or checkbox then you can simply use disable

    For radio button:

    Select color
    

    For dropdown:

    
    

提交回复
热议问题