Skip to content

Instantly share code, notes, and snippets.

View Alexander-Taran's full-sized avatar

Alexander Taran Alexander-Taran

View GitHub Profile
@Alexander-Taran
Alexander-Taran / app.html
Last active March 15, 2018 20:24
App delayed activate
<template>
<h1>${message}</h1>
</template>
@Alexander-Taran
Alexander-Taran / app.html
Created March 15, 2018 20:20
Aurelia Gist
<template>
<h1>${message}</h1>
</template>
@Alexander-Taran
Alexander-Taran / app.html
Last active March 12, 2018 21:49
Promise edit pattern
<template>
<template if.bind="editMode">
<input value.bind="editValue">
<button click.delegate="save()">save</button>
<button click.delegate="cancel()">cancel</button>
</template>
<template else>
<h1>${message} <button click.delegate="edit()">edit</button></h1>
</template>
</template>
@Alexander-Taran
Alexander-Taran / app.html
Last active March 11, 2018 21:12
Set and clear interval
<template>
<h1>${message}</h1>
<button click.delegate="startInterval()">start interval</button>
<button click.delegate="stopInterval()">stop interval</button>
</template>
@Alexander-Taran
Alexander-Taran / app.html
Last active March 9, 2018 21:52 — forked from djedi/app.html
collection observer vs observable, splice, replace combo solution - binding input in another repeater
<template>
<input type="range" ref="range1" value.bind="100" min.bind="0" max.bind="10">
${range1.value}
<input type="range" ref="range2" min.bind="0" value.bind="100" max.bind="10">
${range2.value}
<input type="range" ref="range3" min.bind="0" max.bind="10" value.bind="100">
${range3.value}
@Alexander-Taran
Alexander-Taran / app.html
Last active March 26, 2018 15:40 — forked from jdanyow/app.html
Aurelia Gist
<template>
<h1>${message}</h1>
</template>