How do I get the checkboxes that have been checked, in a case where I iterate over values to create a variable range of checkboxes?
HBS:
<ul>
{{#each item in model}}
<li><label>{{input type="checkbox"}} {{item}}</label></li>
{{/each}}
</ul>
Route:
App.IndexRoute = Ember.Route.extend({
model: function() {
return ['red', 'yellow', 'blue'];
},
actions: {
iHaveSelected: function() {
// Get checked items
}
}
});