mercredi 21 janvier 2015

How do you create a non persisted model with EmberData?

I have an ember data app and I'm using createRecord to instantiate a model on a new records page. The problem is that this instantly creates the record in the store. So if someone navigates away from the the new record page the object is already persisted. There used to be a createModel method but it seems to have been removed. How is this handled now?





Aucun commentaire:

Enregistrer un commentaire