Angular 2: Disable input change not working

后端 未结 6 1499
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-29 22:44

Up until \"final\" 2.0 of Angular I have done this:


To dynami

6条回答
  •  时光说笑
    2020-12-29 23:14

    If somebody scrolls through this and the accepted answer (Günters) doesn't work, as it didn't for me at first. It might be that you are trying to use it with a custom component and haven't implemented the optional method setDisabledState(isDisabled: boolean) from the ControlValueAccessor interface.

提交回复
热议问题