Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Created October 28, 2017 20:20
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 matthieu-D/45bf50518adf11ca5f6141e0b12cbe66 to your computer and use it in GitHub Desktop.
Save matthieu-D/45bf50518adf11ca5f6141e0b12cbe66 to your computer and use it in GitHub Desktop.
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