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> | |
<div>count: ${count}</div> | |
<div>nums:</div> | |
<ul> | |
<li repeat.for="num of nums">${num}</li> | |
</ul> | |
<button click.delegate="increase()">Increase count</button> | |
</template> |
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='./cancellable'></require> | |
<div> | |
Name: ${name} | |
Age: ${age} | |
<button click.delegate="edit()">Edit</button> | |
</div> | |
<div if.bind="editing"> |
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="./thing"></require> | |
<require from="./child-thing"></require> | |
<require from="./other-thing"></require> | |
<thing></thing> | |
<child-thing></child-thing> | |
<other-thing></other-thing> | |
</template> |
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> | |
See console | |
<button click.delegate="change()">Change</button> | |
</template> |
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> | |
Hello world! | |
</template> |
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="naive-if"></require> | |
<div naive-if="new,run">Hello world!</div> | |
<button click.delegate="cycleState()">Change state</button> | |
</template> |