title: how to get ngif =hide input value in angular 2 forms
body: <p>in my form i am showing two files conditionally..</p>
  
  <p>when one is true i am getting the value. but i want to send hidden value field as zero. </p>
  
  <p>my html file </p>
  
  <pre><code>&lt;div class="form-group" *ngIf="block_rent_sold" &gt;
              &lt;label for="Weekly_Rent"&gt;Weekly Rent &amp;nbsp;$&lt;/label&gt;
              &lt;input type="number" id="Weekly_Rent"
                     class="form-control" value="0"
                     placeholder="Rent Amount"
                     ngModel
                     name="Weekly_Rent" required
                     &gt;
                     &lt;/div&gt;
                     &lt;div class="form-group" *ngIf="!block_rent_sold" &gt;
              &lt;label for="Rent"&gt; Price &amp;nbsp;$&lt;/label&gt;
              &lt;input type="number" id="Weekly_Rent"
                     class="form-control" value="0"
                     placeholder="Property Price"
                     ngModel
                     name="Rent" required
                     &gt;
                     &lt;/div&gt;
  </code></pre>
  
  <p>when weekly rent true i want send <strong>Rent</strong> field as zero</p>