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
<html> | |
<script language="JavaScript"><!-- | |
function onLoad() { | |
var canvas = document.getElementById('canvas'); | |
var red = document.getElementById('red'); | |
setTimeout( function() { | |
red.setAttribute('stroke-width', '5px'); |
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> | |
<nav class="navbar"> | |
<a repeat.for="nav of router.navigation" href.bind="nav.href" class="nav-link ${nav.isActive ? 'active' : ''}"> | |
${nav.title} | |
</a> | |
</nav> | |
<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> | |
<nav class="navbar"> | |
<a repeat.for="nav of router.navigation" href.bind="nav.href" class="nav-link ${nav.isActive ? 'active' : ''}"> | |
${nav.title} | |
</a> | |
</nav> | |
<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> | |
<require from="./component"></require> | |
<h3>Not calling the propertyChanged handler</h3> | |
<component propone="Hugh" update-on-bind.bind="false"></component> | |
<h3>Calling the propertyChanged handler manually</h3> | |
<component propone="Juan" update-on-bind.bind="true"></component> | |
</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> | |
ROOT | |
<div if.bind="showApp" ref="theelement"> | |
This is the element. | |
</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> | |
<div class="page-host"> | |
<div repeat.for="obj of data">${obj.id} = ${obj.val}</div> | |
</div> | |
<div click.delegate="update()">UPDATE</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> | |
<div class="page-host"> | |
<div repeat.for="obj of data">${obj.id} = ${obj.val}</div> | |
</div> | |
<div click.delegate="update()">UPDATE</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="component"></require> | |
<div>expected: <span innerHTML.bind="mocktext"></span></div> | |
<div>actual: <component></component></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="component"></require> | |
<div>expected: <span innerHTML.bind="mocktext"></span></div> | |
<div>actual: <component></component></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="./parent"></require> | |
<parent></parent> | |
</template> |