feat: use onChanges hook

This commit is contained in:
Ayo 2023-10-08 04:24:30 +02:00
parent c5dea1ec70
commit 5e7e1cbaba

View file

@ -15,6 +15,10 @@ export default class HelloWorld extends WebComponent {
this.setAttribute("title", "Click me please");
}
onChanges(changes) {
console.log(changes);
}
get template() {
return `<button style="cursor:pointer">Hello ${this.name}!</button>`;
}