Button not clickable - Disable Click


#1

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


#2

[disabled]="randomBooleanVar"


#3

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


#4

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.