title: Ngx-bootstrap's radio group wont bind to selected value on load
body: <p>My ngx-bootstrap radio buttons work fine and bind to selectedValue, except when the page first loads. Although selectedValue is initialized, ngModel will not bind to it when the page is first loaded.</p>
  
  <p>I've tried to initialize selectedValue member in both the class and in OnInit(), hoping it was an order of operation issue, but ngModel still will not bind when the page loads.</p>
  
  <pre><code>import { Component, OnInit } from '@angular/core';
  
  @Component({
    selector: 'demo-buttons-radio',
    templateUrl: './radio.html'
  })
  export class DemoButtonsRadioComponent implements OnInit {
    radioModel = 'Left';
  
    selectedValue: number = 0;
  
    familyValues: number[] = [ 0, 1, 2, 3, 4 ];
  
    ngOnInit() {
      this.selectedValue = 0;
    }
  }
  </code></pre>
  
  <p>Here's my HTML:</p>
  
  <pre><code>&lt;pre class="card card-block card-header"&gt;{{selectedValue || 'null'}}&lt;/pre&gt;
  &lt;div class="btn-group"&gt;
         &lt;label class="btn btn-primary" [(ngModel)]="selectedValue" btnRadio="0" tabindex="0" role="button"&gt;0&lt;/label&gt;
         &lt;label class="btn btn-primary" [(ngModel)]="selectedValue" btnRadio="1" tabindex="0" role="button"&gt;1&lt;/label&gt;
         &lt;label class="btn btn-primary" [(ngModel)]="selectedValue" btnRadio="2" tabindex="0" role="button"&gt;2&lt;/label&gt;
         &lt;label class="btn btn-primary" [(ngModel)]="selectedValue" btnRadio="3" tabindex="0" role="button"&gt;3&lt;/label&gt;
         &lt;label class="btn btn-primary" [(ngModel)]="selectedValue" btnRadio="4" tabindex="0" role="button"&gt;4&lt;/label&gt;
  &lt;/div&gt;
  
  
  &lt;div class="btn-group" *ngFor="let value of familyValues;" btnRadioGroup [(ngModel)]="selectedValue"&gt;
         &lt;label class="btn btn-success" btnRadio="{{value}}" tabindex="0" role="button"&gt;{{value}}&lt;/label&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>The ngx-bootstrap demo works, as shown by the initial button selected. Could it be that ng-model doesn't like integers?</p>
  
  <p><a href="https://angular-je8xrf.stackblitz.io" rel="nofollow noreferrer">https://angular-je8xrf.stackblitz.io</a></p>