Skip to content

Instantly share code, notes, and snippets.

@jsobell
Last active March 17, 2016 11:04
Show Gist options
  • Save jsobell/ad12fdf15110974dba50 to your computer and use it in GitHub Desktop.
Save jsobell/ad12fdf15110974dba50 to your computer and use it in GitHub Desktop.
Aurelia If Bind test on template part
<template>
<h2>Simple App</h2>
<h5>Hi ${firstName}</h5>
</template>
import {autoinject} from 'aurelia-framework';
@autoinject
export class App {
firstName = 'Jason';
constructor() {
}
}
<!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