Created
April 3, 2017 15:13
-
-
Save t4t5/0a8105376fab0f449db119e9bbe6fd6a to your computer and use it in GitHub Desktop.
todo-item-component
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
// src/ui/components/todo-item/component.ts | |
import Component from '@glimmer/component'; | |
export default class TodoItem extends Component { | |
delete() { | |
let item = this.args.item; | |
this.args.deleteItem(item); | |
} | |
toggle() { | |
let item = this.args.item; | |
this.args.toggleItem(item); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you could bypass this by doing either:
+
or