title: AngularJS ng-required not working with variables
body: <p>I have to use the directive ng-required, but I cannot hardcode true or false. I need to use it in a variable, but angular does not recognize the "true".</p>
  
  <p><a href="http://jsfiddle.net/v2gTp/1/" rel="nofollow">jsFiddle example</a></p>
  
  <pre><code>&lt;div ng-app ng-init="test=true"&gt;
      &lt;div&gt;
          both have ng-required="true"
          &lt;br/&gt;
          one as hardcoded string literal, one via a variable
          &lt;br/&gt;
          Inspect them, one is not required!
      &lt;/div&gt;
      &lt;form name="myForm"&gt;
          &lt;input type="text" ng-required="{{test}}" /&gt;
          &lt;input type="text" ng-required="true" /&gt;
      &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>How can I get this working?</p>