Skip to content

Instantly share code, notes, and snippets.

@opcodewriter
opcodewriter / app.html
Last active March 16, 2016 14:16 — forked from jdanyow/app.html
Aurelia If Bind test on template part
<template>
<require from="./click-to-edit"></require>
<click-to-edit>
<template replace-part='item-template'>
This text node is in DOM only after click
</template>
</click-to-edit>
</template>
@opcodewriter
opcodewriter / app.html
Last active March 8, 2016 11:07 — forked from anonymous/app.html
Aurelia simple repeat
<template>
<a href="#!" click.delegate="selectUser(user.id)" class="collection-item ${user.state}" repeat.for="user of users" id="user-${user.id}">
<span if.bind="!user.lastName">${user}</span>
<span if.bind="user.firstName">${user.lastName}, ${user.firstName}</span>
</a>
</template>