title: Angular ng If not working with razor syntax
body: <p>I am using Angular Js with Razor.</p>
  
  <pre><code>@{
      var pageMode = (string) ViewBag.PageMode;
  }
  
  &lt;div ng-if="@pageMode == 'answer'"&gt;
     &lt;h2&gt;Greetings&lt;/h2&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Value is in <code>ViewBag.PageMode</code> is "answer", still the ng if does not render. i.e "Greetings" message does not work.</p>
  
  <p>What am I doing wrong here... ?</p>