Skip to content

Instantly share code, notes, and snippets.

View deap82's full-sized avatar

Dan Pettersson deap82

View GitHub Profile
@deap82
deap82 / app.html
Last active March 2, 2018 13:27 — forked from djedi/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="val of data">
<template>
<require from="./my-attr-options"></require>
<require from="./my-attr"></require>
<div my-attr my-attr-options="option1.bind: firstInstanceOpt"></div>
<div my-attr my-attr-options="option1.bind: secondInstanceOpt"></div>
<div my-attr></div>
</template>
@deap82
deap82 / app.html
Last active June 7, 2018 10:30 — forked from jdanyow/app.html
aurelia-binding unicode escaping
<template>
<h1>${message}</h1>
</template>