Skip to content

Instantly share code, notes, and snippets.

@chrism
Last active November 10, 2015 13:31
Show Gist options
  • Save chrism/3de0d28b4ee93a97cab3 to your computer and use it in GitHub Desktop.
Save chrism/3de0d28b4ee93a97cab3 to your computer and use it in GitHub Desktop.
// models/parent.js
import DS from 'ember-data';
export default DS.Model.extend({
name: DS.attr('string'),
children: DS.hasMany('child')
});
// this was possible
model.get('children'); //=> returned children
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment