Skip to content

Instantly share code, notes, and snippets.

@plwalters
plwalters / app.html
Created February 21, 2017 05:54
DI inheritance
<template>
<h1>${message}</h1>
</template>
@plwalters
plwalters / app.html
Created February 21, 2017 07:55
Binding custom attribute
<template>
<h1>${message}</h1>
<p attributes.bind="attributes">Inspect me.</p>
</template>
@plwalters
plwalters / app.html
Created March 2, 2017 19:03
DI inheritance
<template>
<compose view-model="./test"></compose>
</template>
@plwalters
plwalters / app.html
Last active March 17, 2017 05:14
DI inheritance
<template>
<require from="./child-element"></require>
<require from="./child-element-two"></require>
<h2>Parent Errors below</h2>
<ul>
<li repeat.for="error of errors">
${error.name}
</li>
</ul>
@plwalters
plwalters / app.html
Created June 12, 2017 22:49
DI inheritance
<template>
<h1>${message}</h1>
</template>
@plwalters
plwalters / app.html
Created June 12, 2017 22:51
DI inheritance
<template>
<require from="./two-decimal-value-converter"></require>
<h1>${message}</h1>
<input value.bind="testing | twoDecimal "/>
</template>
@plwalters
plwalters / app.html
Created August 1, 2017 01:55
DI inheritance
<template>
<require from="./sort"></require>
<require from="./customele"></require>
<table>
<tr
as-element="customele"
repeat.for="entry of entries | sort: { propertyName: 'on', direction: 'descending' }"
entry.bind="entry">
</tr>
</table>
@plwalters
plwalters / app.html
Last active August 29, 2017 02:45
DI inheritance
<template>
<table>
<thead>
<tr>
<th>Date</th>
<th>Price</th>
<th>Amount</th>
<th>Total</th>
<th>Profit</th>
</tr>
@plwalters
plwalters / app.html
Last active August 29, 2017 02:49
DI inheritance
<template>
<table>
<thead>
<tr>
<th>Date</th>
<th>Price</th>
<th>Amount</th>
<th>Total</th>
<th>Profit</th>
</tr>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Node URI Example</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1>QR Code Example</h1>