title: AngularJs: ng-show / ng-hide expression not evaluated
body: <p>I'm new to both javascript and AngularJS, and wondering why is the expression inside the quotes not evaluated?</p>
  
  <pre><code>&lt;span ng-show="{{remaining()}}!==0"&gt;sometext&lt;/span&gt;
  </code></pre>
  
  <p>it is simply printed like this:</p>
  
  <pre><code>&lt;span ng-show="2!==0"&gt;sometext&lt;/span&gt;
  </code></pre>
  
  <p>and the ng-show is not working regardless of the contents. The text ( and the printed expression) is shown even if the expression is wrapped in an eval, :</p>
  
  <pre><code>eval("{{remaining()}}!==0")
  </code></pre>
  
  <p>I resorted to creating a function in my controller for this:</p>
  
  <pre><code>&lt;span ng-show="renderOrNot()"&gt;sometext&lt;/span&gt;
  </code></pre>
  
  <p>which works, but I would prefer not to have to write a function each time I want to make a comparison</p>