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> | |
<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> | |
<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> |