Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.