title: Radio Button Bootstrap 4 and Angular 4
body: <p>I have a radio button with Bootstrap 4, and it works well, less than when I put one, it does not stay checked:</p>
  
  <p>I have it in an application with Angular 4, and I do not know if I have to do it with an attribute or what syntax I should use, specifically.</p>
  
  <p>Someone can help me, I was missing to check the buttons</p>
  
  <p>Just start the screen are all unchecked.</p>
  
  <pre><code>&lt;div class="btn-group" data-toggle="buttons"&gt;
    &lt;label class="btn btn-primary active"&gt;
      &lt;input type="radio" name="options" id="option1" [value]="HOY" [(ngModel)]="sinImputarValue" (click)="sinImputarHoy();"&gt; SIN IMPUTAR HOY
    &lt;/label&gt;
    &lt;label class="btn btn-primary"&gt;
      &lt;input type="radio" name="options" id="option2" [value]="SEMANA" [(ngModel)]="sinImputarValue" (click)="sinImputarSemana();"&gt; SIN IMPUTAR ESTA SEMANA
    &lt;/label&gt;
    &lt;label class="btn btn-primary"&gt;
      &lt;input type="radio" name="options" id="option3" [value]="MES" [(ngModel)]="sinImputarValue" (click)="sinImputarMes();"&gt; SIN IMPUTAR ESTE MES
    &lt;/label&gt;
  &lt;/div&gt;
  
  
    sinImputarHoy(){
    console.debug("sinImputarHoy");
    this.limpiarFiltroManual();
    this.sinImputarValue = 'HOY';
  }
  
  sinImputarSemana(){
    console.debug("sinImputarSemana");
    this.limpiarFiltroManual();
    this.sinImputarValue = 'SEMANA';
  }
  
  sinImputarMes(){
    console.debug("sinImputarMes");
    this.limpiarFiltroManual();
    this.sinImputarValue = 'MES';
  }
  </code></pre>