title: How to programmatically set ng-required to true (via controller) in angularjs form
body: <p>I have a form and an input field, I want to make it required based on specific condition, but I can't change the html page, I have to set the make the field required to true dynamically inside the controller. Does angular provide any way to do set an input field to required field.</p>
  
  <p>Also i don't have attribute </p>
  
  <pre><code>ng-required 
  </code></pre>
  
  <p>present for the input field.</p>