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> | |
<h1>${message}</h1> | |
<input ref="control" /> | |
<button click.delegate="log()">Log</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="./sortable-custom-attribute"></require> | |
<ul sortable="array.bind: left; options.bind: { group: 'test' }"> | |
<li repeat.for="item of left">${item}</li> | |
</ul> | |
<ul sortable="array.bind: right; options.bind: { group: 'test' }"> | |
<li repeat.for="item of right">${item}</li> | |
</ul> | |
</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="./my-element"></require> | |
<my-element>Hey</my-element> | |
</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> | |
<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 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 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 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="./registration-form"></require> | |
<registration-form></registration-form> | |
</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="./autocomplete"></require> | |
<form> | |
<label class="form-component"> | |
Country:<br/> | |
<autocomplete service.bind="suggestionService.country" | |
value.bind="model.country" | |
placeholder="Enter country..." | |
change.delegate="model.city = null"> | |
</autocomplete> |