Skip to content

Instantly share code, notes, and snippets.

@AlexanderKozhevin
Created May 7, 2017 10:37
Show Gist options
  • Save AlexanderKozhevin/29c18b2e4ec8b27d526ce0bd848489f3 to your computer and use it in GitHub Desktop.
Save AlexanderKozhevin/29c18b2e4ec8b27d526ce0bd848489f3 to your computer and use it in GitHub Desktop.
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-primary" [class.active]="model.left">
<input type="checkbox" [(ngModel)]="model.left"> Left (pre-checked)
</label>
<label class="btn btn-primary" [class.active]="model.middle">
<input type="checkbox" [(ngModel)]="model.middle"> Middle
</label>
<label class="btn btn-primary" [class.active]="model.right">
<input type="checkbox" [(ngModel)]="model.right"> Right
</label>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment