dagda1
dagda1

Reputation: 28810

Ember-data - Get the hash of the Model

This is probably a frequently asked question but how do I get the opaque hash from an Ember.Data model?

Upvotes: 0

Views: 138

Answers (1)

Andre Malan
Andre Malan

Reputation: 2043

It depends on your version of Ember at them moment. There have been a lot of changes lately, but it should be one of these 3 methods:

object = App.MyModel.find(1)


object.toString()
object.toData()
object.serialize() //latest version

Upvotes: 2

Related Questions