title: Pass HTML attribute value to function in angular 2
body: <p>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...:</p>
  
  <pre><code>&lt;my-element [hidden]="switchHidden()"&gt;&lt;/my-element&gt;
  </code></pre>
  
  <p>... so if it's in false, it now will be true, and viceversa. A very typical approach.</p>
  
  <p>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?</p>
  
  <p>Thank you!</p>