Saving state before severe refactoring (to support a proper update-loop and future extensibility)

This commit is contained in:
2019-10-26 23:52:38 +02:00
parent 863adb9449
commit fc527cb156
4 changed files with 108 additions and 55 deletions

View File

@@ -28,10 +28,12 @@ export class TodoItem extends CustomElement{
handleChange = ()=>{
this.dispatchEvent(new CustomEvent('check', {
detail: (this.checked=!this.checked),
bubbles: true
}));
};
handleClick = ()=>{
this.dispatchEvent(new CustomEvent('remove', {
bubbles: true
}));
};
}