Reworked how decorators are used to get to our initial steps of actually updating the DOM on a state change. *phew*

This commit is contained in:
2019-10-23 23:34:45 +02:00
parent 5169c5018d
commit 863adb9449
7 changed files with 200 additions and 107 deletions

View File

@@ -27,7 +27,7 @@ export class TodoItem extends CustomElement{
handleChange = ()=>{
this.dispatchEvent(new CustomEvent('check', {
detail: (this.checked=!this.checked)
detail: (this.checked=!this.checked),
}));
};
handleClick = ()=>{