title: How to write Javascript inside of Angular Binding?
body: <p>My code consists of img tag which fetches image dynamically.</p>
  
  <pre><code>&lt;img src="{{'http://example.com/'+category.name+'.png'}}"&gt;
  </code></pre>
  
  <p>What I want to do is write Javascript code to replace <code>&amp;</code> from the category name i.e.</p>
  
  <pre><code>&lt;img src="{{'http://example.com/'+category.name.replace("&amp;", "AND")+'.png'}}"&gt;
  </code></pre>
  
  <p>But Angular gives me the error when I write JS inside of the src binding. Please help me to fix this!</p>