Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@freshcutdevelopment
Forked from jdanyow/app.html
Last active July 3, 2017 09:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save freshcutdevelopment/ed22852c6c4889c1595526ae5c61b134 to your computer and use it in GitHub Desktop.
Save freshcutdevelopment/ed22852c6c4889c1595526ae5c61b134 to your computer and use it in GitHub Desktop.
Aurelia in Action Chapter 2 - Exercise 1
<template>
<style>
</style>
<h1>${message}</h1>
<form submit.trigger="greet()">
<input type="text" value.bind="greeting"></input>
<input type="submit"></input>
</form>
</template>
export class App {
message = 'Hello Aurelia in Action!';
greet(){
this.message = this.greeting;
}
}
<!doctype html>
<html>
<head>
<title>Aurelia</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body{
font: 400 14px/1.6 "Open Sans",sans-serif;
}
</style>
</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