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