Skip to content

Instantly share code, notes, and snippets.

@geekygrappler
Last active August 29, 2015 14:03
Show Gist options
  • Save geekygrappler/64a117dfe3e73275e542 to your computer and use it in GitHub Desktop.
Save geekygrappler/64a117dfe3e73275e542 to your computer and use it in GitHub Desktop.
<li class="{{if isCompleted 'completed'}}">
{{#if isEditing}}
{{input type="text" class="edit" value=title focus-out="acceptChanges"
insert-newline="acceptChanges"}}
{{else}}
{{input type="checkbox" checked=isCompleted class="toggle"}}
<label {{action "editTodo" on="doubleClick"}}>{{title}}</label><button class="destroy"></button>
{{/if}}
</li>
@tragiclifestories
Copy link

Spotted a typo: value=title should be value=todo.title

@jc310xc
Copy link

jc310xc commented Jun 16, 2015

^ What he said. All of the todo properties are missing their todo prefix

@johnteakdigital
Copy link

Ah, also {{title}} should be {{todo.title}} I believe in order to get this work correctly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment