ga-wdi-boston / ember-object

Explore the Ember Object Model, and leverage it to do some basic binding through computed properties.
Other
1 stars 112 forks source link

Change Ember.Object.create to Person.create #22

Open payne-chris-r opened 7 years ago

payne-chris-r commented 7 years ago

The code example has

Person.create({
...
  kids: [
-    Ember.Object.create({ name: 'Tina', age: 13 }),
-    Person.create({ name: 'Tina', age: 13 }),
  ...
  ]
})

Can you call Person.create inside Person.create? I don't see why not, but someone should test this and then change it in the README if 👍