Artifact Content
Artifact 2c74ca74d07e9876b80527d189b2401de679ad881756f64e9bd2386f31f74fb8:
- File public/riot-3.13.2/test/tag/loop-manip.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: 389)
<loop-manip> <ul> <li each={ item, i in items }>{ item } <a onclick={ parent.remove }>remove</a></li> </ul> <button onclick={ top }>Top</button> <button onclick={ bottom }>Bottom</button> this.items = [0,1,2,3,4,5] bottom(e) { this.items.push(100) } top() { this.items.unshift(100) } remove(e) { this.items.splice(e.item.i, 1) } </loop-manip>