wcb/examples/demo/BooleanPropTest.mjs
Ayo Ayco 73dd374a3e
feat: attach-effect (#2)
We are now able to attach "side effects" to property value changes, from inside the component and outside.
2023-12-01 08:42:10 +01:00

11 lines
345 B
JavaScript

import WebComponent from "../../src/WebComponent.js";
export class BooleanPropTest extends WebComponent {
static properties = ["is-inline", "anotherone"];
get template() {
return `<p>is-inline: ${this.props.isInline}</p><p>another-one: ${this.props.anotherone}</p>`;
}
}
customElements.define("boolean-prop-test", BooleanPropTest);