Source: demo_module/initialData.js

/** @module */

/**
  * initial data for the demo module
  **/

/**
  * Initial values for the primary data of the module.
  * It could come from a database, file or any other asynchronous source.
  * Include secondary joins directly as objects into the primary, if they
  * are exclusive to the one primary. This makes access and version tagging
  * easier.
  **/
export const primary = [{
  id: 'primary-1',
  name: 'String1',
  active: true,
  secondary: [{
    id: 'id1',
    name: 'secondary-1'
  }]
}, {
  id: 'primary-2',
  name: 'String2',
  active: false,
  secondary: [{
    id: 'id2',
    name: 'secondary-2'
  }, {
    id: 'id3',
    name: 'secondary-3'
  }]
}]