title: How to play mp3 with Angular 2?
body: <p>I want to write a small ionic/angular application where I load a dynamic mp3 file from a remote server and play it for pressing a button OR if it is checked I play it automaticly. I tried to use the simple <code>&lt;audio&gt;&lt;/audio&gt;</code> but i am not sure if this is the good way for this... </p>
  
  <p><em>code:</em></p>
  
  <p><strong>html</strong></p>
  
  <pre><code>&lt;audio id="player"&gt;
  &lt;source id="source" src="http://remote.address.com/example.mp3"&gt;&lt;/source&gt;
  &lt;/audio&gt;
  </code></pre>
  
  <p><strong>javascript</strong></p>
  
  <pre><code>play(){
  var audio= document.getElementById('player');
  audio.play();
  }
  </code></pre>