Skip to content

Instantly share code, notes, and snippets.

View AshleyGrant's full-sized avatar

Ashley Grant AshleyGrant

View GitHub Profile
@AshleyGrant
AshleyGrant / app.html
Last active December 13, 2017 11:22 — forked from jdanyow/app.html
Basica Aurelia Gist 2016-09-12
<template>
<h2>${heading}</h2>
</template>
@AshleyGrant
AshleyGrant / app.html
Last active September 22, 2017 10:41 — forked from Baudin999/app.html
Aurelia Compose Containerless Gist
<template>
<require from="container"></require>
<ck-container>
<compose repeat.for="item of items"
view="${item.view}.html"
view-model="${item.view}"
model.bind="item.model"
></compose>
<template>
<input type="text" value.bind="foo.bar" />
<button click.delegate="fireSignal()">Fire signal</button>
<div>
Without Signal:
<div><pre>${foo | toJson}</pre></div>
</div>
<div>
With Signal:
<div><pre>${foo | toJson & signal:'my-signal'}</pre></div>
<template>
<require from="./inline-view"></require>
<inline-view></inline-view>
</template>
@AshleyGrant
AshleyGrant / app.html
Last active July 29, 2016 17:13 — forked from jdanyow/app.html
Aurelia programattically changing reference value doesn't change model
<template>
<div>
<input ref="myinput" type="text" value.bind="mymodel.test">
</div>
<div>
The value of my input is: ${mymodel.test}
</div>
<div>
<input type="button" value="Change Me" click.delegate="changeValByRef()">
</div>
<template>
<require from="tabs"></require>
<require from="tab"></require>
<tabs>
<tab></tab>
<tab></tab>
</tabs>
</template>
@AshleyGrant
AshleyGrant / app.html
Created July 22, 2016 17:38 — forked from jdanyow/app.html
Aurelia autocomplete
<template>
<div class="row">
<div class="col-sm-3" repeat.for="image of images">
<div class="thumbnail">
<img src.bind="image" />
<div class="caption text-center">
<button type="button" class="btn btn-default" click.trigger="setCoverPhoto($index)" data-toggle="tooltip" title="Use as cover">Set Cover</button>
<button type="button" class="btn btn-default" click.trigger="removeAttachment($index)" data-toggle="tooltip" title="Remove photo">Remove</button>
</div>
</div>
@AshleyGrant
AshleyGrant / app.html
Created July 20, 2016 15:24 — forked from andrewflierman/app.html
Aurelia RequireJS Gist
<template>
<require from="./autocomplete"></require>
<div>Type something in the input and the message should change into 'calculatedPrice()!'</div>
<h1>${message}</h1>
<autocomplete selected.delegate="calculatePrice()"></autocomplete>
</template>
<template>
<form>
<label repeat.for="item of items">
<input type="radio" name="test" value.bind="item" checked.bind="selected">
${item}
</label>
<button type="reset">Reset</button>
</form>
selected = '${selected}'
</template>
@AshleyGrant
AshleyGrant / app.html
Last active April 5, 2017 13:40 — forked from jdanyow/app.html
Aurelia Gist
<template>
<h1>${message}</h1>
</template>