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:
@@ -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 }),
|
||||
|
Reference in New Issue
Block a user