Can I just work with regular data objects?


#1

I have a simple model:

{
  name: "foo",
  description: "bar
}

But when I get it using this.get(“model”) I get this Ember object I have no idea how to work with.

How can I iterate over the fields? How can I just work with the dictionary?


#2

http://emberjs.com/guides/object-model/classes-and-instances/ & http://emberjs.com/guides/models/ should be helpful.


#3

You can work with Ember objects as with plain object. Use for … in, or Ember.keys() to enumerate fields.