Skip to content

Instantly share code, notes, and snippets.

@fabioluz
fabioluz / app.html
Last active March 23, 2017 17:23 — forked from jdanyow/app.html
Aurelia RJS
<template>
${message}
</template>
<template>
<form>
<label>view: <textarea value.bind="viewHtml" rows="8" cols="80"></textarea></label>
<label>view-model: <textarea value.bind="viewModelJs" rows="8" cols="80"></textarea></label>
<button type="submit" click.delegate="submit()">Submit</button>
<button type="button" click.delegate="remove()">Remove</button>
</form>
<!--<div ref="container"></div>-->
</template>
@fabioluz
fabioluz / app.html
Last active July 24, 2017 13:37 — forked from jsobell/app.html
Aurelia RequireJS Gist
<template>
${message}
</template>
@fabioluz
fabioluz / app.html
Last active July 25, 2016 21:26 — forked from jdanyow/app.html
Aurelia Gist
<template>
<compose view="./my-element.html" view-model="./my-element"></compose>
<br>
<br>
<!--<require from="./my-element"></require>-->
<!--<my-element></my-element>-->
</template>
<template>
<router-view layout-view="default.html"></router-view>
</template>
<template>
${message}
</template>
@fabioluz
fabioluz / app.html
Last active November 12, 2016 19:02 — forked from AStoker/app.html
<template>
<require from="./svg-component"></require>
<div>
<svg-component svg="leaf"></svg-component>
</div>
</template>
<template>
<div id="container">
<div repeat.for="item of items">
<compose view-model.bind="item.viewModel" view.bind="item.view"></compose>
</div>
</div>
<div style='margin-top: 20px'>
<div repeat.for="log of logs">
${log}
</div>
<template>
<require from="./dynamic-element"></require>
<div>
Text Box
<text-box value.bind="text"></text-box>
</div>
<div>
Date Picker
<date-picker value.bind="date"></date-picker>
<template>
<require from='./element'></require>
<element model.bind='model'></element>
</template>