Open celsomtrindade opened 8 years ago
There is a way to make it work with ng-disabled?
@ido567 if you change the original file like I did, you can use it normally.
That's the only way, I really try to avoid that
@ido567 We'll have to wait to see if they have other solution, or other method. I didn't found any other way to solve this. Or maybe I'm missing something.
I found a workaround, using data-disabled:
<switch name="testing" ng-model="testing" data-disabled="isDisabled"></switch>
How can we set it to true or false dynamically on some conditions?
The switch with property 'disabled=true' is not working.
I checked my console and the input didn't had the
disabled=true
set, so i was able to interact with it anyway.I added this line and it worked:
This is the overall input code:
The code i was using was based on the example provided, like this:
After doing this, everything works fine, even with disabled true/false.