title: ng-if expression always renders true
body: <p>I'm trying to use the ng-if expression to render posts as images or text, depending on the content. The first of theese lines render true sometimes and false sometimes in a ng-repeat-loop, however both the image and the span are shown in each itteration.</p>
  
  <pre><code>&lt;a href="{{post.url}}"&gt;
    {{post.type == 0}}
    &lt;img ng-if="post.type == 0" src="{{post.content}}" /&gt;
     &lt;span ng-if="post.type == 1"&gt;{{post.content}}&lt;span&gt;
  &lt;/a&gt;
  </code></pre>