From 5e7e1cbaba3a1c4d2c9f29e8daa7f8e3ee0699f7 Mon Sep 17 00:00:00 2001 From: Ayo Date: Sun, 8 Oct 2023 04:24:30 +0200 Subject: [PATCH] feat: use onChanges hook --- src/components/hello-world.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/hello-world.js b/src/components/hello-world.js index b670be1..54ac7f0 100644 --- a/src/components/hello-world.js +++ b/src/components/hello-world.js @@ -15,6 +15,10 @@ export default class HelloWorld extends WebComponent { this.setAttribute("title", "Click me please"); } + onChanges(changes) { + console.log(changes); + } + get template() { return ``; }