Is there a way to bind the property of a checkbox to a property in the model, for example:
I have this simple model on a route:
export default Ember.Route.extend({
model:function(params) {
return { "isAdmin": true }
}
});
And on the template I want to display the checkbox checked when the isAdmin is true:
<input id="adminControll" name="isAdmin" type="checkbox" onchange= />
Any ideas on how to achieve this?
Aucun commentaire:
Enregistrer un commentaire