Fixed minor things, cleaned up some code

This commit is contained in:
2019-11-06 00:29:09 +01:00
parent 72f38c1137
commit 3b0dce6fbe
4 changed files with 9 additions and 8 deletions

View File

@@ -1,11 +1,10 @@
import {defineElement, render, CustomElement, Host, ShadowDOM, State} from "../../../packages/csx-custom-elements";
import {defineElement, render, CustomElement, Host, ShadowDOM, State, Prop} from "../../../packages/csx-custom-elements";
import style from './todo-item.scss';
@defineElement('todo-item')
export class TodoItem extends CustomElement{
@State() checked = false;// TODO annotate as prop instead of state (attribute)
@State() model; // TODO annotate as prop instead of state
@State() text;
@Prop() checked = false;
@Prop() model;
render(){
return (