title: Replace empty string for a item in ng-repeat
body: <p>I am just trying to replace empty strings in a item that is part of ng-repeat so I can use this as an id for a div element. Works for the first empty space. I want a global replace and tried something like / /g, but the quotes in the code is messing it up or I am not doing it right.</p>
  
  <p>I tried this</p>
  
  <pre><code>&lt;div ng-repeat="list in list"&gt;
          &lt;div id="{{list.name.replace(' ','_');}}" &gt;&lt;/div&gt;
  </code></pre>