title: How to play a sound in angularjs
body: <p>Using an API to obtain the url of the sound to play in audio tag<br>
  View </p>
  
  <pre><code>&lt;img src="../img/play.svg" alt="Play" ng-click="playSound('exampleWord')" width="48"/&gt;
  </code></pre>
  
  <p></p>
  
  <p>Controller:</p>
  
  <pre><code>$scope.playSound=function(input){
      $scope.audio={};
      soundFetch.getSound(input).success(function(data){
          $scope.audio=data;
      });
  }
  </code></pre>
  
  <p>The soundFetch is the service to call the getSound function. The returning data is the url of the song.
  How can I play the sound after clicking the img tag. Currently getting an error <code>Error: [$interpolate:interr]</code></p>