Clear button in V4

Hi,
how to apply clear in ionic V4?

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

or

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

do not work for me

What is the solution?

thank you in advance.

Ludo

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

<ion-button fill="clear">
3 Likes

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

1 Like

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

1 Like

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