Artifact Content
Artifact 588062a50131ba02c391a4de0dec21a70bea5b52db9d9c980dbc387e409a93e7:
- File public/riot-3.13.2/test/tag/loop.tag — part of check-in [12a9bb700d] at 2021-08-11 18:56:04 on branch trunk — Import from git Added a changelog (user: dev size: 435)
<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>