1
0
mirror of https://github.com/jaandrle/deka-dom-el synced 2025-07-29 07:00:16 +02:00

🚀 use native listeners & scope

This commit is contained in:
2023-10-09 13:49:38 +02:00
parent 7417565fa5
commit ebbb76e9a0
12 changed files with 668 additions and 579 deletions

View File

@@ -17,7 +17,8 @@ export class CustomHTMLTestElement extends HTMLElement{
}
render({ name, test, preName }, host){
host(on.connected(console.log));
host(on.connected(()=> console.log(CustomHTMLTestElement)));
host(on.disconnected(()=> console.log(CustomHTMLTestElement)));
return el("p").append(
el("#text", { textContent: name }),
el("#text", { textContent: test }),