feat: use onChanges hook
This commit is contained in:
parent
c5dea1ec70
commit
5e7e1cbaba
1 changed files with 4 additions and 0 deletions
|
@ -15,6 +15,10 @@ export default class HelloWorld extends WebComponent {
|
||||||
this.setAttribute("title", "Click me please");
|
this.setAttribute("title", "Click me please");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onChanges(changes) {
|
||||||
|
console.log(changes);
|
||||||
|
}
|
||||||
|
|
||||||
get template() {
|
get template() {
|
||||||
return `<button style="cursor:pointer">Hello ${this.name}!</button>`;
|
return `<button style="cursor:pointer">Hello ${this.name}!</button>`;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue