Skip to content

Instantly share code, notes, and snippets.

@afm-sayem
Created October 24, 2016 15:26
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 afm-sayem/05e866106e1be96087f12a339a83d516 to your computer and use it in GitHub Desktop.
Save afm-sayem/05e866106e1be96087f12a339a83d516 to your computer and use it in GitHub Desktop.
Aurelia Template example
<template>
<h1>${heading}</h1>
<form submit.trigger="addTodo()">
<input type="text" value.bind="todoDescription">
<button type="submit">Add Todo</button>
</form>
<ul>
<li repeat.for="todo of todos">
<input type="checkbox" checked.bind="todo.done">
<span>
${todo.description}
</span>
<button click.trigger="removeTodo(todo)">Remove</button>
</li>
</ul>
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment