Skip to content

Instantly share code, notes, and snippets.

@SaucyJack
Forked from jdanyow/app.html
Last active May 21, 2018 21:16
Show Gist options
  • Save SaucyJack/5ae0985fe2e8756643650114a12ec68e to your computer and use it in GitHub Desktop.
Save SaucyJack/5ae0985fe2e8756643650114a12ec68e to your computer and use it in GitHub Desktop.
Router-Slot-Router
<template>
<h1>${message}</h1>
<!-- https://gist.github.com/jdanyow/1ae985e6c943885496e8 -->
</template>
export class App {
message = 'Hello World!';
}
<!doctype html>
<html>
<head>
<title>Aurelia</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body aurelia-app>
<h1>Loading...</h1>
<script src="https://cdn.rawgit.com/jdanyow/aurelia-bundle/v1.0.3/jspm_packages/system.js"></script>
<script src="https://cdn.rawgit.com/jdanyow/aurelia-bundle/v1.0.3/config.js"></script>
<script>
System.import('aurelia-bootstrapper');
</script>
</body>
</html>
<template>
<h4>Top Router - First Route</h4>
</template>
export class TopRouteOne {
}
<template>
<h3>Top Router - Second Route</h3>
</template>
export class TopRouteTwo {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment