remove white space from text in angular
<p>I'm try to put some text into an element's class attribute. In the example below {{operator}} will always have a value.</p>

<pre><code>&lt;input type="radio" class="ng-hide test-{{operator}}"
</code></pre>

<p>Sometime though the value of {{operator}} can contain white space or be two words.</p>

<p>Something like: (although this doesn't work)</p>

<pre><code>  &lt;input type="radio" class="ng-hide test-{{operator.replace("","-")}}" 
</code></pre>

<p>How can I replace the white space with a hyphen or replace it with an empty string?</p>