I am walking through the tutorial of EmberJS and creating TodoMVC: http://ift.tt/1ODYaQp
Instead of using the ember-cli-mirage from the tutorial, I'm wiring up Firebase and most of it works great. I am comfortable with Angular and Dart with Firebase, but am just starting to learn Ember.
I'm struggling with a checkbox input not updating Firebase and I'm not sure where to go from here.
In my component I have
{{input type="checkbox" checked=todo.complete class="toggle"}}
My model looks like this:
export default DS.Model.extend({
title: DS.attr('string'),
complete: DS.attr('boolean')
});
Using the Ember Inspector in Chrome I can see the ember data gets updated appropriately, but that change never makes it out to firebase. Is there something specific that needs to be done to wire up the Ember Checkbox helper with EmberFire?
Aucun commentaire:
Enregistrer un commentaire