Skip to content

Instantly share code, notes, and snippets.

@jdanyow
Last active October 3, 2016 10:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jdanyow/2d310abbbea337fb5f6d110ec807f7d2 to your computer and use it in GitHub Desktop.
Save jdanyow/2d310abbbea337fb5f6d110ec807f7d2 to your computer and use it in GitHub Desktop.
<template>
${message}
</template>
export class App {
message = 'hello world';
}
<template>
${message}
</template>
export class App {
message = 'goodbye world';
}
<!doctype html>
<html>
<head>
<title>Aurelia</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div aurelia-app="main1">
<h1>Loading...</h1>
</div>
<div aurelia-app="main2">
<h1>Loading...</h1>
</div>
<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>
export function configure(aurelia) {
aurelia.use
.standardConfiguration()
.developmentLogging();
aurelia.start().then(a => a.setRoot('app1'));
}
export function configure(aurelia) {
aurelia.use
.standardConfiguration()
.developmentLogging();
aurelia.start().then(a => a.setRoot('app2'));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment