Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

How to disable a button on a condition?

$
0
0

You can use

<button [class.button-disabled]="myCondition">

for now. You should be able to use the disabled attribute like this:

<button [attr.disabled]="myCondition ? '' : null">

but it seems that isn't working right now, so I created an issue:


Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>