How to use the ember-data-model-fragments.fragmentOwner function in ember-data-model-fragments

To help you get started, we’ve selected a few ember-data-model-fragments examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github lytics / ember-data-model-fragments / tests / dummy / app / models / name.js View on Github external
import MF from 'ember-data-model-fragments';
import DS from 'ember-data';

export default MF.Fragment.extend({
  first: DS.attr('string'),
  last: DS.attr('string'),
  person: MF.fragmentOwner(),

  ready() {
    this.set('readyWasCalled', true);
  }

});