Skip to content

Instantly share code, notes, and snippets.

@freshcutdevelopment
Created September 16, 2017 10:17
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save freshcutdevelopment/e27c8099d04ef68d7bbcb15f8307505e to your computer and use it in GitHub Desktop.
Aurelia code quality - part 6
<template>
<h2>Greetings</h2>
<hr/>
<ul>
<li repeat.for="greeting of greetings">
${greeting}
</li>
</ul>
<hr/>
<!-- add default two-way binding to a new greeting property -->
<input placeholder="add greeting" value.bind="greeting">
</input>
<!-- delegate the button click the the addGreeting method -->
<button click.delegate="addGreeting()"></button>
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment