I am having 2 component select and input component.as shown in below image.
Scenario: Here by default i have set input field as disabled.If i choose some option from select component then the field becomes active.This scenario is working fine.
Expected Result: I should have another option in the select component(i,e dropdown) to disable the input field again(If user doesn't want want choose anything from select component).
Here is the stackblitz link.
Another option is make a directive
So you can use the directive like
and we don't worry about changes, disables variables, etc
You have to do some editings. in your Html file
And in your ts file