title: How to remove required field if the field is hidden state - Angular 2
body: <p>I need a solution for below mentioned issue. Kindly help to solve the problem.</p>
  
  <p><strong>Case 1:</strong></p>
  
  <p>Password is a required field only for new user Creation. </p>
  
  <blockquote>
    <p>Password: new FormControl('', Validators.required),</p>
  </blockquote>
  
  <p><strong>Case 2:</strong></p>
  
  <p>Changing the password visibility hidden using *ngIf </p>
  
  <blockquote>
    <p>( "ng-reflect-ng-if":"false" )</p>
  </blockquote>
  
  <p><strong>Case 3 :</strong> </p>
  
  <p>Now If i hit on Save its says Password required. help me to fix this issue field should not validate if it is hidden .</p>
  
  <p>Thanks.</p>