How to use the ember-data-model-fragments.array 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 / person.js View on Github external
import DS from 'ember-data';
import MF from 'ember-data-model-fragments';

export default DS.Model.extend({
  title: DS.attr('string'),
  nickName: DS.attr('string'),
  name: MF.fragment('name'),
  names: MF.fragmentArray('name'),
  addresses: MF.fragmentArray('address'),
  titles: MF.array(),
  hobbies: MF.fragmentArray('hobby', { defaultValue: null }),
  houses: MF.fragmentArray('house'),
  children: MF.array(),
  strings: MF.array('string'),
  numbers: MF.array('number'),
  booleans: MF.array('boolean')
});
github lytics / ember-data-model-fragments / tests / dummy / app / models / person.js View on Github external
import DS from 'ember-data';
import MF from 'ember-data-model-fragments';

export default DS.Model.extend({
  title: DS.attr('string'),
  nickName: DS.attr('string'),
  name: MF.fragment('name'),
  names: MF.fragmentArray('name'),
  addresses: MF.fragmentArray('address'),
  titles: MF.array(),
  hobbies: MF.fragmentArray('hobby', { defaultValue: null }),
  houses: MF.fragmentArray('house'),
  children: MF.array(),
  strings: MF.array('string'),
  numbers: MF.array('number'),
  booleans: MF.array('boolean')
});
github lytics / ember-data-model-fragments / tests / dummy / app / models / person.js View on Github external
import DS from 'ember-data';
import MF from 'ember-data-model-fragments';

export default DS.Model.extend({
  title: DS.attr('string'),
  nickName: DS.attr('string'),
  name: MF.fragment('name'),
  names: MF.fragmentArray('name'),
  addresses: MF.fragmentArray('address'),
  titles: MF.array(),
  hobbies: MF.fragmentArray('hobby', { defaultValue: null }),
  houses: MF.fragmentArray('house'),
  children: MF.array(),
  strings: MF.array('string'),
  numbers: MF.array('number'),
  booleans: MF.array('boolean')
});
github lytics / ember-data-model-fragments / tests / dummy / app / models / person.js View on Github external
import DS from 'ember-data';
import MF from 'ember-data-model-fragments';

export default DS.Model.extend({
  title: DS.attr('string'),
  nickName: DS.attr('string'),
  name: MF.fragment('name'),
  names: MF.fragmentArray('name'),
  addresses: MF.fragmentArray('address'),
  titles: MF.array(),
  hobbies: MF.fragmentArray('hobby', { defaultValue: null }),
  houses: MF.fragmentArray('house'),
  children: MF.array(),
  strings: MF.array('string'),
  numbers: MF.array('number'),
  booleans: MF.array('boolean')
});
github lytics / ember-data-model-fragments / tests / dummy / app / models / person.js View on Github external
import DS from 'ember-data';
import MF from 'ember-data-model-fragments';

export default DS.Model.extend({
  title: DS.attr('string'),
  nickName: DS.attr('string'),
  name: MF.fragment('name'),
  names: MF.fragmentArray('name'),
  addresses: MF.fragmentArray('address'),
  titles: MF.array(),
  hobbies: MF.fragmentArray('hobby', { defaultValue: null }),
  houses: MF.fragmentArray('house'),
  children: MF.array(),
  strings: MF.array('string'),
  numbers: MF.array('number'),
  booleans: MF.array('boolean')
});