⌈⌋ ⎇ branch:  Bitrhythm


Artifact Content

Artifact 0e1d1af4ec98435fbf386add9d38239b77995b98b217c4472ea4a0d7972d65f5:


<loop-sync-options>
  <loop-sync-options-child each={ child in children } data={ child } class={ active: child.val }></loop-sync-options-child>

  this.children = [{
    val: 'foo'
  },{
    num: 3
  },{
    bool: false
  }]

</loop-sync-options>

<loop-sync-options-child>

  function sync() {
    this.val = opts.data.val
    this.bool = opts.data.bool
    this.num = opts.data.num
  }

  this.on('update', sync).on('mount', sync)

</loop-sync-options-child>