Artifact Content
Artifact 0e1d1af4ec98435fbf386add9d38239b77995b98b217c4472ea4a0d7972d65f5:
- File public/riot-3.13.2/test/tag/loop-sync-options.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: 460)
<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>