Skip to content

Instantly share code, notes, and snippets.

View AshleyGrant's full-sized avatar

Ashley Grant AshleyGrant

View GitHub Profile
@AshleyGrant
AshleyGrant / app.html
Created March 11, 2016 15:37 — forked from jdanyow/app.html
Aurelia Gist
<template>
<div style="height: 125px; min-width: 150px; width: 100%;" ref="canvasContainer">
<canvas ref="canvas" width.one-way="canvasContainer.offsetWidth"></canvas>
</div>
</template>
@AshleyGrant
AshleyGrant / app.html
Created May 4, 2016 00:14 — forked from jdanyow/app.html
Aurelia - Sortable
<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>
@AshleyGrant
AshleyGrant / app.html
Last active May 4, 2016 16:57 — forked from qtuan/app.html
Aurelia global var subscription
<template>
See console
<button click.delegate="change()">Change</button>
</template>
<template>
<require from="./button-row"></require>
<button-row repeat.for="btnRow of btnRowArray" label.bind="btnRow.label" buttons.bind="btnRow.buttons"></button-row>
</template>
@AshleyGrant
AshleyGrant / app.html
Last active February 5, 2019 18:21 — forked from jdanyow/app.html
Wizardry With Binding Behaviors
<template>
<require from="./dynamic-expression-binding-behavior"></require>
<require from="./debug"></require>
<form role="form">
<div class="form-group col-sm-7" repeat.for="field of fields">
<label for="${field.expression}">
${field.label}:
</label>
@AshleyGrant
AshleyGrant / app.html
Last active June 27, 2016 21:47 — forked from jdanyow/app.html
Aurelia Value Converter config object
<template>
<ul>
<li repeat.for="item of array | sort:theConfig">${item}</li>
</ul>
</template>
@AshleyGrant
AshleyGrant / app.html
Last active July 8, 2016 14:30 — forked from jdanyow/app.html
Demonstrate binding
<template>
<input type="checkbox" checked.bind="isChecked" /><br>
${text}
</template>
@AshleyGrant
AshleyGrant / app.html
Last active April 5, 2017 13:40 — forked from jdanyow/app.html
Aurelia Gist
<template>
<h1>${message}</h1>
</template>
<template>
<form>
<label repeat.for="item of items">
<input type="radio" name="test" value.bind="item" checked.bind="selected">
${item}
</label>
<button type="reset">Reset</button>
</form>
selected = '${selected}'
</template>