title: Based on If condition I want make the field as required in angular2
body: <pre><code> &lt;div *ngFor="let proc of procInputList" &gt;
           &lt;label &gt;{{proc.key_ | Capitalize}}&lt;/label&gt;
     &lt;input id="{{proc.key_}}" name="inputparams" type ="text" class="form-control" required = "proc.r_q == Y ? required :none"  /&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>But unfortunately its not working for me..and I don't want to use forms there.</p>