Last active
November 10, 2015 13:31
-
-
Save chrism/3de0d28b4ee93a97cab3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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