angular2 will not disable input based on true or false condition

前端 未结 4 2060
孤城傲影
孤城傲影 2021-01-04 18:39

I have a input box based on the below:

If a change a radio I see that the value changes to true for false:

 {{model_parameters_general.est         


        
4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-04 19:02

    It seems in rc.6 they have removed the ability to disable inputs dynamically on a template binding when using reactive forms. You have to monitor changes and call .disable() on the formControl you wish to disable now. I rather prefer the old way of doing things and hope that they bring it back or an equally useful solution.

    Chime in on this related github issue.

提交回复
热议问题