Skip to content

Instantly share code, notes, and snippets.

View kshep92's full-sized avatar

Kevin kshep92

  • Trinidad and Tobago
View GitHub Profile
@kshep92
kshep92 / subscription-form.component.html
Created August 29, 2016 14:26
How to handle checkbox group in Angular 2 RC5
<form [formGroup]="subscriptionForm">
<div>
<label>Frequency</label>
<p *ngFor="let schedule of viewData.schedules">
<input type="checkbox"
[checked]="subscription.schedules.includes(schedule)"
(change)="changeSchedules(schedule)"> {{ schedule.display }}
</p>
</div>