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 April 8, 2018 20:53 — forked from putstrln/app.html
Template binding for array
<template>
<h1>Referencing other fields in repeat.for of another field</h1>
<p>Even though randoms is updated, times repeat isn't re-rendered since randoms isn't watched in that loop.</p>
<p>To re-render the times loop, we need to use a signal to refresh the UI.</p>
<h2>Times</h2>
<ul>
<li repeat.for='time of times'>
# ${$index} Time - ${time} <-> Random - ${randoms[$index] }
</li>
</ul>
@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>