Skip to content

Instantly share code, notes, and snippets.

@opcodewriter
opcodewriter / app.html
Last active March 8, 2016 16:26
Combobox
<template>
<select>
<option repeat.for="user of users" value="{user.id}">${user.firstName} ${user.lastName}</option>
</select>
</template>
@opcodewriter
opcodewriter / app.html
Last active March 17, 2016 06:53
Aurelia Custom H Tag
<template>
<require from='dynamic-header'></require>
<dynamic-header containerless></dynamic-header>
</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>