title: Removing all spaces from angular js ng-repeat variable
body: <p>In one of my angular application I will get the values when I pass the key in ng-repeat.</p>
  
  <p>Here each <strong>rows</strong> in <strong>rowsdata</strong> has values like <code>'my file1 data', 'my file2 data', 'my file3 data'</code>  </p>
  
  <p>But I need to pass it as <code>'myfile1data', 'myfile2data', 'myfile3data'</code></p>
  
  <p>When I used rows.replace(' ','') it is removing only the first space like <code>'myfile1 data', 'myfile2 data', 'myfile3 data'</code></p>
  
  <pre><code>&lt;tr ng-repeat="data in datas"&gt; 
    &lt;td ng-repeat="rows in rowdatas"&gt;{{data[rows.replace(' ','')]}}&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p><strong>EDIT</strong></p>
  
  <p>But when I use </p>
  
  <pre><code>&lt;td ng-repeat="rows in rowdatas"&gt;{{data[rows.replace(/ /g,'')]}}&lt;/td&gt;
  </code></pre>
  
  <p>I got</p>
  
  <pre><code>Error: a is not a function OPERATORS["/"]@http://loclhost/jcp_standardwork/secure/scripts/vendor/angular/a‌​ngular.js:5959 OPERATORS["/"]@http://loclhost/jcp_standardwork/secure/scripts/vendor/angular/a‌​ngular.js:5959 binaryFn/&lt;@http://loclhost/jcp_standardwork/secure/scripts/vendor/angular/angul‌​ar.js:6292 
  </code></pre>
  
  <p>Can anyone show me some solution for this?</p>