This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<require from="./toggle-badge"></require> | |
<toggle-badge text="North Carolina" checked.bind="inboundLanes"></toggle-badge> | |
<toggle-badge text="South Carolina" checked.bind="inboundLanes"></toggle-badge> | |
<div>Selected Lanes:</div> | |
<div repeat.for="lane of inboundLanes">${lane}</div> | |
<hr/> | |
<label><input type="checkbox" model.bind="'North Carolina'" checked.bind="outboundLanes">North Carolina</label> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<require from="list"></require> | |
<list items.bind="list"></list> | |
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<h2>dynamic view model by path</h2> | |
<button click.trigger="loadNewViewModel()">Load different vm</button> | |
<compose view-model="${currentViewModel}"></compose> | |
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<router-view></router-view> | |
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<router-view></router-view> | |
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <reference path="require.js" /> | |
(function () { | |
var DEBUG = 3, WARN = 2, ERROR = 1, NONE = 0; | |
//Set the logging level | |
var logLevel = DEBUG; | |
function log(level) { | |
var msg = Array.prototype.slice.call(arguments, 1); |