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="./my-element"></require> | |
<my-element my-prop="test ${message}"></my-element> | |
</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> | |
<input type="text" value.bind="address.line1" /> | |
</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> | |
<select value.bind="val" if.bind="opts && !val"> | |
<option repeat.for="opt of opts" model.bind="opt">${opt.firstName}</option> | |
</select> | |
<div if.bind="!opts || val"> | |
<span>${val.firstName}</span> | |
<button click.delegate="clearVal()" if.bind="val">Clear</button> | |
</div> | |
<button click.delegate="getOpts()">Get</button> | |
<template with.bind="val.address"> |
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> | |
<h1>Dialog Repro</h1> | |
<button click.delegate="submit()">Open Dialog</button> | |
</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='./records'></require> | |
<require from='./record-form'></require> | |
<div class="container-fluid"> | |
<div class="row mt-1"> | |
<div class="col-xs-12"> | |
<p class="lead text-muted">${heading}</p> | |
</div> | |
</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> | |
<template repeat.for="app of apps" show.bind="selectedApp === app"> | |
${app.name} | |
</template> | |
</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> | |
<button click.delegate="prompt()">open dialog</button> | |
<br><br> | |
(app [inline]) inner data:<br> | |
<div repeat.for="s of outer.inner">${s.name}</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="./customel"></require> | |
<customel attribute="0"></customel> | |
<customel attribute="2"></customel> | |
</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> | |
<ul> | |
<li repeat.for="person of people" click.delegate="changeColor(person, $event)" style="background-color: ${person.color}"> | |
${person.name} | |
<div repeat.for="item of items" click.delegate="changeColor(item, $event)" style="color: ${item.color}"> | |
${item.checked} | |
<input type="checkbox" click.delegate="stopPropagation($event)"/> | |
</div> | |
</li> | |
</ul> |
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="./my-custom-element"></require> | |
<my-custom-element>Hey</my-custom-element> | |
</template> |