⌈⌋ ⎇ branch:  Bitrhythm


Artifact Content

Artifact 588062a50131ba02c391a4de0dec21a70bea5b52db9d9c980dbc387e409a93e7:


<loop>
  <ul>
    <li each="{ item, i in items }" onclick="{ parent.opts.onItemClick }">{ i } { item.value } </li>
  </ul>
  <dl>
    <dt each="{ this.removes }" onclick="{ parent.opts.removeItemClick }">{ value } </dt>
  </dl>
  <button onclick={ addSomeItems }>btn</button>

  this.items = []

  addSomeItems(e) {
    var amount = 5
    while(amount--){
      this.items.push({value: "item #" + this.items.length})
    }
  }
</loop>