0
votes

I'm trying to get my template to display a save button when the form is changed.

The when the value of an input field is changed, the model is set to isDirty=true, but template tag is not activated.

Pertinent Information

  • Using Ember Model ( not Ember Data )
  • Edit route is nested in item route
  • Model is being set to isDirty = true ( I think I'm not binding to it correctly )

enter image description here

JSBin with prototype of the problem

http://jsbin.com/owanef/19/edit

If you click on Edit, you will see edit form for the active model. When I enter anything into the field, the model doesn't become dirty or it doesn't propagate to the template.

What could be causing this?

Summary

Ember Model doesn't bind isDirty to the controller. As a result, controller's isDirty property is update correctly, but model's is not. Read more about this in Github Issue.

1

1 Answers

1
votes

I changed the ember-model included to use the version on github master, and now it shows isDirty to be true always. See this jsbin using master.

This may be a bug in Ember-model. You may want to file an issue on github.