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>
<require from="./radio-button"></require>
<radio-button button-name="Btn1">asdf</radio-button>
<radio-button button-name="Btn2">asdf</radio-button>
</template>
<template>
<require from="./select2-attribute"></require>
<select style="width: 200px;" ddl value.bind="selectedValue" change.delegate="valueChanged()" multiple>
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
</select>
<br><br>
<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>
<compose view="./my-element.html" view-model="./my-element"></compose>
<br>
<br>
<!--<require from="./my-element"></require>-->
<!--<my-element></my-element>-->
</template>
<template>
${message}
<hr>
Example 1
<div click.delegate="update()">
<div class="checkbox">
<label>
<input checked.bind="isChecked" type="checkbox"> Visibility
</label>
<template>
<router-view layout-view="default.html"></router-view>
</template>