Richard Ramsden

Ember.Checkbox and bindings

Today I ran into an issue figuring out how to bind a model attributes properly to a checkbox in Ember.

Instead of valueBinding for regular form inputs you need to use checkedBinding when defining a checkbox.

Using Ember’s input helper:

    {{input type="checkbox" checkedBinding="model.attribute"}}