Last active
December 7, 2016 00:55
-
-
Save lstarky/7338a5ab87926f97f86b8f6c5f7494af to your computer and use it in GitHub Desktop.
Testing anchors
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>Hello, ${fname}!</h1> | |
<ul> | |
<li><a href="#page1">Page 1</a></li> | |
<li><a href="#page2">Page 2</a></li> | |
</ul> | |
<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
export class App { | |
constructor() { | |
this.fname = "John"; | |
} | |
configureRouter(config, router) { | |
this.router = router; | |
config.title = 'Aurelia'; | |
config.map([ | |
{ route: ['', 'page1'], name: 'page1', moduleId: 'page1' }, | |
{ route: 'page2', name: 'page2', moduleId: 'page2' } | |
]); | |
} | |
} |
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
<!doctype html> | |
<html> | |
<head> | |
<title>Aurelia</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
</head> | |
<body aurelia-app="main"> | |
<script src="https://jdanyow.github.io/rjs-bundle/node_modules/requirejs/require.js"></script> | |
<script src="https://jdanyow.github.io/rjs-bundle/config.js"></script> | |
<script src="https://jdanyow.github.io/rjs-bundle/bundles/aurelia.js"></script> | |
<script src="https://jdanyow.github.io/rjs-bundle/bundles/babel.js"></script> | |
<script> | |
require(['aurelia-bootstrapper']); | |
</script> | |
</body> | |
</html> |
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
export function configure(aurelia) { | |
aurelia.use | |
.standardConfiguration() | |
.developmentLogging(); | |
aurelia.start().then(() => aurelia.setRoot()); | |
} |
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>Page 1 Header</h2> | |
<div id="toc"> | |
<h1>Table of Contents</h1> | |
<ul> | |
<li><a href="#section1">Section 1</a></li> | |
<li><a href="#section2">Section 2</a></li> | |
</ul> | |
</div> | |
<div id="section1"> | |
<h2>Section 1</h2> | |
<p>Paragraph Text...</p> | |
<p>Paragraph Text...</p> | |
<p>Paragraph Text...</p> | |
<p>Paragraph Text...</p> | |
<p>Paragraph Text...</p> | |
<p>Paragraph Text...</p> | |
<p>Paragraph Text...</p> | |
<p>Paragraph Text...</p> | |
<p>Paragraph Text...</p> | |
<p>Paragraph Text...</p> | |
<p><a href="#toc">Back to Table of Contents</a></p> | |
</div> | |
<div id="section2"> | |
<h2>Section 2</h2> | |
<p>Paragraph Text...</p> | |
<p>Paragraph Text...</p> | |
<p>Paragraph Text...</p> | |
<p>Paragraph Text...</p> | |
<p>Paragraph Text...</p> | |
<p>Paragraph Text...</p> | |
<p>Paragraph Text...</p> | |
<p>Paragraph Text...</p> | |
<p>Paragraph Text...</p> | |
<p>Paragraph Text...</p> | |
<p>Paragraph Text...</p> | |
<p>Paragraph Text...</p> | |
<p><a href="#toc">Back to Table of Contents</a></p> | |
</div> | |
</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
export class Page1 { | |
} |
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>Page 2 Header</h2> | |
<div id="toc"> | |
<h1>Table of Contents</h1> | |
<ul> | |
<li><a href="#section3">Section 3</a></li> | |
<li><a href="#section4">Section 4</a></li> | |
</ul> | |
</div> | |
<div id="section3"> | |
<h2>Section 3</h2> | |
<p>Paragraph Text...</p> | |
<p>Paragraph Text...</p> | |
<p>Paragraph Text...</p> | |
<p>Paragraph Text...</p> | |
<p>Paragraph Text...</p> | |
<p>Paragraph Text...</p> | |
<p>Paragraph Text...</p> | |
<p>Paragraph Text...</p> | |
<p>Paragraph Text...</p> | |
<p>Paragraph Text...</p> | |
<p><a href="#toc">Back to Table of Contents</a></p> | |
</div> | |
<div id="section4"> | |
<h2>Section 4</h2> | |
<p>Paragraph Text...</p> | |
<p>Paragraph Text...</p> | |
<p>Paragraph Text...</p> | |
<p>Paragraph Text...</p> | |
<p>Paragraph Text...</p> | |
<p>Paragraph Text...</p> | |
<p>Paragraph Text...</p> | |
<p>Paragraph Text...</p> | |
<p>Paragraph Text...</p> | |
<p>Paragraph Text...</p> | |
<p>Paragraph Text...</p> | |
<p>Paragraph Text...</p> | |
<p><a href="#toc">Back to Table of Contents</a></p> | |
</div> | |
</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
export class Page2 { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment