vendredi 25 septembre 2015

EmberJS bind checked value based on boolean

I've got my model setup so that it returns a user's status as a boolean. I have two radio buttons I want to use, one for active and another for inactive. I want to have the appropriate value binded like so:

{{ input type="radio" name="status" id="is_active" checked=model.status }}
{{ input type="radio" name="status" id="inactive" checked=model.status }}

What I have doesn't seem to work. Is there another way?




Aucun commentaire:

Enregistrer un commentaire