This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<require from="./toggle"></require> | |
<input type="checkbox" model.one-time="model" checked.bind="items"> | |
<toggle model.one-time="model" array.bind="items"></toggle> | |
<button click.delegate="reassign()">Reassign array</button> | |
<h3>Manual:</h3> | |
<p>Checkbox and <code><toggle></code> custom element are both bound to the same array and are expected to do the same thing.</p> | |
<p>Clicking <i>Toggle</i> will modify <code>items</code> array and toggle internal flag. The checkbox will react to array's change. Getter won't be triggered.</p> |