In my Angular template I have this bit of code:
<div class = "btn-group" data-toggle="buttons">
<input type="text" class = "form-control" [(ngModel)]="siteFilter[filterType]" placeholder="Refine Search">
<label class="btn btn-default">
<input type="radio" (change)="changeFilter('1')" autocomplete="off">1
</label>
<label class="btn btn-default active">
<input type="radio" (change)="changeFilter('2')" autocomplete="off" checked>2
</label>
<label class="btn btn-default">
<input type="radio" (change)="changeFilter('3')" autocomplete="off">3
</label>
</div>
When I use the data-toggle="buttons" attribute, my (change)="changeFilter() is not even triggered. How do I keep the the data-toggle functionality and have the change event trigger on a radio press?
ng-bootstrapfrom the beginning, but I'd prefer to not have to convert the whole app now. Is there a way I can useng-bootstrapwithout affecting the rest of my Bootstrap 3 elements?