This file contains hidden or 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 repeat.for="i of 10"> | |
${i} ${obj[i]} | |
<button click.delegate="obj[i] = true">do</button> | |
</div> | |
</template> |
This file contains hidden or 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> | |
<compose model.bind="{ authId: authId, caseId: caseId }" view-model="test"></compose> | |
<input change.delegate="authId = $event.target.value" value.one-way="authId" /> | |
<input change.delegate="caseId = $event.target.value" value.one-way="caseId" /> | |
</template> |
This file contains hidden or 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> | |
<p> | |
<label> | |
<input type="checkbox" checked.bind="canSort" change.delegate="if(canSort) sorting = 0" /> | |
Enable Sorting | |
</label> | |
</p> | |
<p> |
This file contains hidden or 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> | |
<router-view></router-view> | |
</template> |
This file contains hidden or 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> | |
<input type="checkbox" checked.bind="one" />1 | |
</div> | |
<div> | |
<input type="checkbox" checked.bind="two" />2 | |
</div> | |
<div> | |
<input type="checkbox" if.bind="one && two" change.delegate="$el.innerText = 'works good'" />change | |
</div> |
This file contains hidden or 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> | |
<table> | |
<thead> | |
<tr> | |
<th> | |
<input type="checkbox" | |
checked.one-way="selected.length === items.length" | |
indeterminate.one-way="selected.length > 0 && selected.length < items.length" | |
change.delegate="$event.target.checked ? selected = items.slice() : selected = []" /> | |
</th> |
This file contains hidden or 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> | |
<p>a</p> | |
<a href="#b">b</a> | |
<compose view-model="comp"></compose> | |
</template> |
This file contains hidden or 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> | |
<router-view layout-view="layout.html"></router-view> | |
<a href="#/one">one</a> | |
<a href="#/two">two</a> | |
</template> |
This file contains hidden or 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 repeat.for="i of 10"> | |
${i} ${obj[i]} | |
<button click.delegate="obj[i] = true">do</button> | |
</div> | |
</template> |
This file contains hidden or 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="attr"></require> | |
<div simple="${abc}"></div> | |
<div simple="shape: ${abc}; color: ${abc}"></div> | |
<input type="text" value.bind="abc" /> | |
</template> |