Skip to content

Instantly share code, notes, and snippets.

@iovergard
iovergard / app.html
Created July 4, 2018 20:08
Custom elements reconstructed on sort
<template>
<require from="./card"></require>
<button click.delegate="sortByName()">Sort alphabetically by name</button>
<button click.delegate="sortByOldest()">Sort by oldest</button>
<card repeat.for="person of people" model.bind="person"></card>
</template>