Skip to content

Instantly share code, notes, and snippets.

@istrau2
istrau2 / app.html
Last active August 30, 2017 21:28 — forked from niieani/app.html
Asyc Aurelia Bindings
<template>
<!-- Simple usage: -->
<h1>message: ${message1}</h1>
<!-- With a placeholder: -->
<h1>message: ${message1 || '...'}</h1>
<!-- With an unresolved return: -->
<h1>message: ${message2}</h1>
</template>
@istrau2
istrau2 / app.html
Created February 9, 2017 19:06 — forked from funky-jojo/app.html
Aurelia Gist
<template>
<require from="./toggle-badge"></require>
<toggle-badge text="North Carolina" checked.bind="inboundLanes"></toggle-badge>
<toggle-badge text="South Carolina" checked.bind="inboundLanes"></toggle-badge>
<div>Selected Lanes:</div>
<div repeat.for="lane of inboundLanes">${lane}</div>
<hr/>
<label><input type="checkbox" model.bind="'North Carolina'" checked.bind="outboundLanes">North Carolina</label>
@istrau2
istrau2 / app.html
Created February 9, 2017 19:06 — forked from funky-jojo/app.html
Aurelia Gist
<template>
<require from="./toggle-badge"></require>
<toggle-badge text="North Carolina" checked.bind="inboundLanes"></toggle-badge>
<toggle-badge text="South Carolina" checked.bind="inboundLanes"></toggle-badge>
<div>Selected Lanes:</div>
<div repeat.for="lane of inboundLanes">${lane}</div>
<hr/>
<label><input type="checkbox" model.bind="'North Carolina'" checked.bind="outboundLanes">North Carolina</label>