Skip to content

Instantly share code, notes, and snippets.

<template>
<!--<ul>
<li><a href="#shared-parent/child-a">#shared-parent/child-a</a></li>
<li><a href="#shared-parent/child-b">#shared-parent/child-b</a></li>
<li><a href="#shared-parent2/child-a">#shared-parent2/child-a</a></li>
<li><a href="#shared-parent2/child-b">#shared-parent2/child-b</a></li>
</ul>-->
<style>
.active a { color: red; font-weight: bold; }
</style>
@BruceL33t
BruceL33t / app.html
Last active February 24, 2017 13:28 — forked from AshleyGrant/app.html
Grouped and Sorted Array Using a Value Converter
<template>
<require from="./grouped-sort"></require>
<table>
<template repeat.for="[group, items] of myArray2 | groupedSort">
<tr>
<td>
${group}
</td>
</tr>
<tr repeat.for="item of items">
<template>
<p>Parent App</p>
<require from="./child-app"></require>
<child-app main.bind="main1"></child-app>
<child-app main.bind="main2"></child-app>
</template>
@BruceL33t
BruceL33t / app-state.js
Last active March 29, 2016 22:02 — forked from jdanyow/app.html
Aurelia Gist
import { NodeModel } from './node-model';
let instance = null;
export default class AppState {
nodes = [];
visibleNodes = [];
constructor() {
if(!instance) {