Skip to content

Instantly share code, notes, and snippets.

@lstarky
Forked from vegarringdal/app.html
Last active December 7, 2016 00:27
Show Gist options
  • Save lstarky/68e624161d23a1baff39cf78c65ad8b6 to your computer and use it in GitHub Desktop.
Save lstarky/68e624161d23a1baff39cf78c65ad8b6 to your computer and use it in GitHub Desktop.
Liam's basic Aurelia template
<template>
<h1>Hello, ${fname}!</h1>
</template>
export class App {
constructor() {
this.fname = "Liam";
}
}
<!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>
export function configure(aurelia) {
aurelia.use
.standardConfiguration()
.developmentLogging();
aurelia.start().then(() => aurelia.setRoot());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment