Closed JSideris closed 5 months ago
The following code doesn't work:
import dot, { DotComponent, IDotElement } from "dothtml"; class MyComponent extends DotComponent{ props = { myList: ["a", "b", "c"], } builder(...args: any[]): IDotElement { return dot.div( dot.h1("My List:") .div( ()=>this.props.myList ) ); } ready(): void { this.props.myList.push("1", "2", "3"); } } dot(document.body).h(new MyComponent())
this.props.myList does get set to an observable array, but for some reason cannot be rendered.
Note that dot.each() will render observable arrays correctly.
dot.each()
Fixed in v6.
The following code doesn't work:
this.props.myList does get set to an observable array, but for some reason cannot be rendered.