title: Angular 2+: control of visibility
body: <p>I like to control the visibility of some content with a button (click it to show the content).
  The best I can think is to control it with a boolean variable.</p>
  
  <pre><code>&lt;button (click)="show=true"&gt;ShowIt&lt;/button&gt;
  &lt;div *ngIf="show == true"&gt;{{ content }}&lt;/div&gt;
  
  show : boolean = false;
  content : string = "blablabla"
  </code></pre>
  
  <p>I think thats pretty clumsy. Is there a more elegant way?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>It is not about how to hide something. It is more about if I really need an extra variable for that.</p>