Skip to content

Instantly share code, notes, and snippets.

@djedi
djedi / app.html
Last active March 2, 2018 13:44 — forked from deap82/app.html
collection observer vs observable, splice, replace combo solution - binding input in another repeater
<template>
<button click.delegate="addData()">Add Data</button>
<button click.delegate="popData()">Pop Data</button>
<button click.delegate="spliceData()">Splice Data</button>
<button click.delegate="replaceData()">Replace Data</button>
<hr>
Data:
<table>
<tr repeat.for="i of data.length">
@djedi
djedi / app.html
Last active March 31, 2017 14:41 — forked from Vheissu/app.html
Example of a HTML only partial for the book -- Aurelia For Real World Web Applications available here: https://leanpub.com/aurelia-for-real-world-applications/
<template>
<require from="./my-element.html"></require>
<my-element heading="This is the heading" body-text="This is the bodyText"></my-element>
</template>