title: Radio button is not getting checked in angular 2
body: <p>I have created two radio button for gender, I want to display radio button checked that was previously selected. </p>
  
  <p>I have added below code in Template</p>
  
  <pre><code>&lt;div class="form-group"&gt;
      &lt;label&gt;Gender&lt;/label&gt;
  
      &lt;div id="input-type"&gt;
          &lt;label class="radio-inline"&gt;
              &lt;input type="radio" formControlName="gender" [name]="'gender'" [value]="'male'"/&gt; Male
          &lt;/label&gt;
          &lt;label class="radio-inline"&gt;
                &lt;input type="radio" formControlName="gender" [name]="'gender'" [value]="'female'"/&gt; Female
          &lt;/label&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I have added below code in Component.</p>
  
  <pre><code>console.log(this.gender);  // I am getting 'male' here.
  this.editProfile = new FormGroup({
       gender: new FormControl(this.gender || null)
  });
  </code></pre>
  
  <p>Other value of the form is getting displayed but radio button is not getting checked.</p>