From a5a39e314af294007fb566c476f55252e2eb73d4 Mon Sep 17 00:00:00 2001 From: Ayo Date: Sun, 17 Sep 2023 20:18:32 +0200 Subject: [PATCH] chore: update test component --- demo/HelloWorld.mjs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/demo/HelloWorld.mjs b/demo/HelloWorld.mjs index e927373..565fe7a 100644 --- a/demo/HelloWorld.mjs +++ b/demo/HelloWorld.mjs @@ -16,10 +16,9 @@ export class HelloWorld extends WebComponent { } onChanges(changes) { + console.log("onChanges", this.querySelector("h1")); Object.keys(changes).forEach((name) => { - console.log( - `${name} changed from ${changes[name].previousValue} to ${changes[name].currentValue}` - ); + console.log(name, changes[name]); }); }