Show and Hide div - Ionic 4

Hi, anyone can help me with that? I need to hide and show one div with the click of the button, I tried some things, but didn’t work.
Thanks.

1 Like

Hello,
use hideen bind to a variable like in ts and change it as you want

let ishidden = false;

in html

<div [hidden]=ishidden>

Best regards, anna-liebt

7 Likes

Thank you, anna-liebt