2021-07-13 12:27:40 +00:00
|
|
|
import { LitElement, html } from 'lit';
|
|
|
|
|
2022-06-29 20:56:51 +00:00
|
|
|
export class CalcAdd extends LitElement {
|
2021-07-13 12:27:40 +00:00
|
|
|
static get properties() {
|
|
|
|
return {
|
|
|
|
num: {
|
2021-07-13 12:28:50 +00:00
|
|
|
type: Number,
|
|
|
|
},
|
2021-07-13 12:27:40 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
render() {
|
2021-07-13 12:28:50 +00:00
|
|
|
return html` <div>Number: ${this.num}</div> `;
|
2021-07-13 12:27:40 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-06-29 20:56:51 +00:00
|
|
|
customElements.define('calc-add', CalcAdd);
|