I have a custom element that I just want to show when I click a button. Then, when I click that button, I want to do something like...:
<my-element [hidden]="switchHidden()"></my-element>
... so if it's in false, it now will be true, and viceversa. A very typical approach.
But I don't know how I can pass to my function "switchHidden()" the value of the "hidden" attribute. How can I do this, so I can check whether it is true or false?
Thank you!