Clear button in V4


how to apply clear in ionic V4?

<ion-button (click)='logout()' clear>Logout</ion-button>


<ion-button clear (click)='logout()'>Logout</ion-button>

do not work for me

What is the solution?

thank you in advance.



You can use the fill property now, e.g:

<ion-button fill="clear">


great thank you it works :blush:
it should be added to the doc ionic 4 because it is always noted clear as ionic 3


I agree. It is not available in the docs. It is a shame that we have to google for each and every single thing.


Ça été rajouté a la doc depuis longtemps