Artifact
26aa718236b87ef643c18ccd7a5e02329a8c581543d882f77a112eb1a7aab69e:
0000: 3c 76 69 72 74 75 61 6c 2d 6e 65 73 74 65 64 2d <virtual-nested-
0010: 75 6e 6d 6f 75 6e 74 3e 0a 20 20 3c 76 69 72 74 unmount>. <virt
0020: 75 61 6c 20 65 61 63 68 3d 22 7b 63 68 69 6c 64 ual each="{child
0030: 49 74 65 6d 73 7d 22 3e 3c 64 69 76 3e 7b 74 69 Items}"><div>{ti
0040: 74 6c 65 7d 3c 2f 64 69 76 3e 0a 20 20 20 20 3c tle}</div>. <
0050: 76 69 72 74 75 61 6c 20 65 61 63 68 3d 22 7b 76 virtual each="{v
0060: 61 6c 75 65 20 69 6e 20 63 68 69 6c 64 63 68 69 alue in childchi
0070: 6c 64 49 74 65 6d 73 7d 22 3e 0a 20 20 20 20 20 ldItems}">.
0080: 20 3c 73 70 61 6e 3e 7b 76 61 6c 75 65 7d 3c 2f <span>{value}</
0090: 73 70 61 6e 3e 0a 20 20 20 20 3c 2f 76 69 72 74 span>. </virt
00a0: 75 61 6c 3e 0a 20 20 20 20 3c 62 72 3e 0a 20 20 ual>. <br>.
00b0: 3c 2f 76 69 72 74 75 61 6c 3e 0a 20 20 3c 62 75 </virtual>. <bu
00c0: 74 74 6f 6e 20 6f 6e 63 6c 69 63 6b 3d 22 7b 20 tton onclick="{
00d0: 75 70 64 61 74 65 43 68 69 6c 64 72 65 6e 20 7d updateChildren }
00e0: 22 3e 75 70 64 61 74 65 43 68 69 6c 64 72 65 6e ">updateChildren
00f0: 3c 2f 62 75 74 74 6f 6e 3e 0a 20 20 76 61 72 20 </button>. var
0100: 73 65 6c 66 20 3d 20 74 68 69 73 3b 0a 0a 20 20 self = this;..
0110: 73 65 6c 66 2e 63 68 69 6c 64 49 74 65 6d 73 20 self.childItems
0120: 3d 20 5b 0a 20 20 20 20 7b 74 69 74 6c 65 3a 22 = [. {title:"
0130: 31 22 2c 20 63 68 69 6c 64 63 68 69 6c 64 49 74 1", childchildIt
0140: 65 6d 73 3a 20 5b 27 31 27 5d 7d 2c 0a 20 20 20 ems: ['1']},.
0150: 20 7b 74 69 74 6c 65 3a 22 32 22 2c 20 63 68 69 {title:"2", chi
0160: 6c 64 63 68 69 6c 64 49 74 65 6d 73 3a 20 5b 27 ldchildItems: ['
0170: 31 27 2c 27 32 27 5d 7d 2c 0a 20 20 20 20 7b 74 1','2']},. {t
0180: 69 74 6c 65 3a 22 33 22 2c 20 63 68 69 6c 64 63 itle:"3", childc
0190: 68 69 6c 64 49 74 65 6d 73 3a 20 5b 27 31 27 2c hildItems: ['1',
01a0: 27 32 27 2c 27 33 27 5d 7d 0a 20 20 5d 0a 0a 20 '2','3']}. ]..
01b0: 20 73 65 6c 66 2e 63 68 69 6c 64 49 74 65 6d 73 self.childItems
01c0: 0a 3c 2f 76 69 72 74 75 61 6c 2d 6e 65 73 74 65 .</virtual-neste
01d0: 64 2d 75 6e 6d 6f 75 6e 74 3e 0a d-unmount>.