Skip to content

Instantly share code, notes, and snippets.

@Agrejus
Forked from jdanyow/app.html
Last active June 9, 2017 13:07
Show Gist options
  • Save Agrejus/d25e092c41d36bac2fd9464d8b22e269 to your computer and use it in GitHub Desktop.
Save Agrejus/d25e092c41d36bac2fd9464d8b22e269 to your computer and use it in GitHub Desktop.
Aurelia Gist
<template>
<h1>${message}</h1>
</template>
import { useView } from 'aurelia-framework';
@useView('./app.html')
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment