Button not clickable - Disable Click

Hello guys!
I want to make a button in ionic not clickable, so how can I do it?

[disabled]="randomBooleanVar"

Sorry, Iā€™m new in Ionic . Can you be a little bit more clear please?

You have in your template : <button ion-button type="submit" [disabled]="!valid">Login</button>

And in your TS you have a var named valid which is set to true when you want to activate the button or false when you want to disable it.

1 Like