Created
October 28, 2017 20:20
-
-
Save matthieu-D/45bf50518adf11ca5f6141e0b12cbe66 to your computer and use it in GitHub Desktop.
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
import { Component, Prop, State } from '@stencil/core'; | |
import { Event, EventEmitter } from '@stencil/core'; | |
@Component({ | |
tag: 'my-todo', | |
styleUrl: 'todo.scss' | |
}) | |
export class Todo { | |
@Event() removeTodo: EventEmitter; | |
@Event() updateTodo: EventEmitter; | |
@Prop() value: string; | |
@Prop() id: string; | |
@State() isEditable = false; | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment