Prop-decorators and supporting DOMElements as VNodes in the renderer

This commit is contained in:
2019-11-29 23:06:05 +01:00
parent 698656c8f6
commit e4eef2cc1a
20 changed files with 332 additions and 6663 deletions

View File

@@ -18,19 +18,19 @@ export class MyTodo extends CustomElement{
<style>{ style }</style>
<h1>CSX Todo</h1>
<section>
<todo-input onSubmit={this.handleSubmit}/>
<TodoInput onSubmit={this.handleSubmit}/>
<ul id="list-container"
onCheck={this.handleCheck}
onRemove={this.handleRemove}
>
{this.todos.map(item =>
<todo-item
<TodoItem
key={item.id}
model={ item.id }
checked={ item.checked }
>
{ item.text }
</todo-item>
</TodoItem>
)}
</ul>
</section>