mirror of https://github.com/sveltejs/svelte
7 lines
220 B
7 lines
220 B
8 years ago
|
{{#each values as value}}
|
||
|
<label>
|
||
8 years ago
|
<input type="checkbox" value="{{value}}" bind:group='selected' /> {{value.name}}
|
||
8 years ago
|
</label>
|
||
|
{{/each}}
|
||
|
|
||
8 years ago
|
<p>{{selected.map( function ( value ) { return value.name; }).join( ', ' ) }}</p>
|