title: AngularJs compare strings inside ng-if doesn't work
body: <p>I'm trying to compare a string value inside <code>ng-if</code> but it doesn't work properly.</p>
  
  <p>For example, i have this scope value to be compared with a string:</p>
  
  <pre><code>vm.val = 'abc'; //or vm.myval = 'afg';
  </code></pre>
  
  <p>And the <code>html</code> looks like this:</p>
  
  <pre><code>&lt;div ng-if="vm.myval == 'abc'&gt; Option abc &lt;/div&gt;
  &lt;div ng-if="vm.myval == 'afg'&gt; Option afg &lt;/div&gt;
  </code></pre>
  
  <p>But the output is always the first option, Option abc. I even tried using <code>===</code> but the result is the same.</p>
  
  <p>How can I compare this to an exact match of the strings?</p>