title: Call a function in <img> to define the path of the src
body: <p>I'm trying to to something like that :</p>
  
  <pre><code>&lt;img id="icon" class="cercle icon" src="getIcon({{item.status}})" alt=""&gt;
  </code></pre>
  
  <p>The function is : </p>
  
  <pre><code>getIcon(status){
      switch (status) {
        case 'Ongoing':
          return '../../../../assets/img/icon/PinPlot.png';
        case 'Signaled':
          return '../../../../assets/img/icon/PinWarning.png';
        case 'Finished':
  
        default:
          return '../../../../assets/img/icon/Pin red.png';
      }
    }
  </code></pre>
  
  <p>But all I get is no image like if it's not found. But no error nor warning.</p>
  
  <p>Any idea ?</p>