title: How to mute and unmute sound in Angular2?
body: <p>I have a sound in my Angular project, like this:</p>
  
  <pre><code>introInfo() {
     this.audio.src = '../assets/sound1.wav';
     this.audio.load();
     this.audio.play();
   }
  
   feedbackInfo() {
     this.audio.src = '../assets/sound1.wav';
     this.audio.load();
     // auto-start
     this.audio.play();
   }
  </code></pre>
  
  <p>And I would like to be able to mute all sounds. If I click the button in my template:</p>
  
  <pre><code>&lt;img class="grow" id="mute" [src]='mute' (click)="muteF()"/&gt;
  </code></pre>
  
  <p>How could I write my function <code>muteF</code>? I would like to mute if I click the button. If I click a second time, it must perform unmute.</p>