Skip to content

Instantly share code, notes, and snippets.

View tkhyn's full-sized avatar

Thomas Khyn tkhyn

View GitHub Profile
<template>
<router-view></router-view>
</template>
@tkhyn
tkhyn / app.html
Last active July 23, 2017 03:34 — forked from jdanyow/app.html
Aurelia + Recaptcha
<template>
<require from="./recaptcha"></require>
<form submit.delegate="submit()" ref="form">
<button recaptcha.bind="recaptcha">Submit</button>
</form>
</template>
@tkhyn
tkhyn / app.html
Created June 14, 2017 10:05
Set manipulation and repeat.for
<template>
<h1 repeat.for="m of messages">${m}</h1>
<button click.trigger="change()">Change messages</button>
</template>
@tkhyn
tkhyn / app.html
Last active July 23, 2017 03:35
Aurelia hello world
<template>
<h1>${text}</h1>
</template>
@tkhyn
tkhyn / index.html
Created July 22, 2017 04:31
Aurelia bootstrapper
<!doctype html>
<html>
<body aurelia-app>
<h1>Loading...</h1>
<script src="https://cdn.rawgit.com/jdanyow/aurelia-bundle/v1.0.3/jspm_packages/system.js"></script>
<script src="https://cdn.rawgit.com/jdanyow/aurelia-bundle/v1.0.3/config.js"></script>
<script>
System.import('aurelia-bootstrapper');
</script>
@tkhyn
tkhyn / app.html
Last active July 23, 2017 03:28
Aurelia custom attribute demo
<template>
<require from="datepicker"></require>
<h1>${text}</h1>
<p>Enter your name: <input type="text" value.bind="name"></p>
<p>Enter the date: <input type="text" datepicker value.bind="date"></p>
</template>