Skip to content

Instantly share code, notes, and snippets.

View funky-jojo's full-sized avatar

Joseph Gabriel funky-jojo

View GitHub Profile
@funky-jojo
funky-jojo / app.html
Last active January 9, 2017 17:13 — forked from ScottWhittaker/app.html
Aurelia Router CanActivate Demo
<template>
<require from="components/navigation.html"></require>
<h1>Aurelia Router CanActivate Redirect Bug Demo</h1>
<p>
Repro steps:
</p>
<ol>
<li>Load the page with settings as the specified route: <a target="_blank" href="https://gist.host/run/1483977856446/index.html#/settings">https://gist.host/run/1483977856446/index.html#/settings</a></li>
<li>Click "Cancel" on the confirm dialog. This will redirect to the 'home' route.</li>
<li>Click "Settings" menu. Click "Cancel" on the confirm dialog. This will cancel the navigation, and remain on the current route.</li>
@funky-jojo
funky-jojo / app.html
Created September 14, 2016 13:00 — forked from niieani/app.html
Aurelia Gist [Demonstrate dynamic compose]
<template>
<h2>dynamic view model by path</h2>
<button click.trigger="loadNewViewModel()">Load different vm</button>
<compose view-model="${currentViewModel}"></compose>
</template>
@funky-jojo
funky-jojo / app.html
Last active September 11, 2016 23:55 — forked from jsobell/app.html
Aurelia Validation Demo - SubElement
<template>
<router-view></router-view>
</template>
@funky-jojo
funky-jojo / app.html
Last active September 1, 2016 03:00 — forked from jdanyow/app.html
Aurelia CanActivate redirect bug
<template>
<h1>${message}</h1>
<h3>Steps to demonstrate:</h3>
<div><a href="https://gist.host/run/1472695581644/index.html#/children/child2" target="_blank">
Click to load "#/children/child2" in a new tab</a> ( redirect("children/child1") works)
</div>
<br>
<div><button click.trigger="navigateToChild2()">Go</button>