Created
September 16, 2017 10:17
Star
You must be signed in to star a gist
Aurelia code quality - part 6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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