title: how to bind Pre-populated data from object to radio button in Angular 5
body: <p>I am working on Angular 5 application. I got radio button for Gender which value is pre-populated radio selection based on value it receving and I need to know how to use ng-if inline in html template. GenderType: string where value 1 is for male and 2 for female.</p>
  
  <p>I have tried *ngIf but its not working out</p>
  
  <pre><code> &lt;div class="k-form-field"&gt;
       &lt;span&gt;Gender&lt;/span&gt;
            &lt;input type="radio" name="gender" id="female" class="k-radio" *ngIf:{{respondent.genderType='1'}} === checked="checked" disabled&gt;
             &lt;label class="k-radio-label" for="female"&gt;Female&lt;/label&gt;
  
            &lt;input type="radio" name="gender" id="male" class="k-radio" disabled&gt;
               &lt;label class="k-radio-label" for="male"&gt;Male&lt;/label&gt;
    &lt;/div&gt;
  </code></pre>