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

💥 rename signals to observables

This commit is contained in:
2023-11-24 20:41:04 +01:00
parent fc4037f3eb
commit 58b73dcbc7
44 changed files with 372 additions and 333 deletions

View File

@@ -1,5 +1,5 @@
import { el, on, scope } from "../../index.js";
import { S } from "../../signals.js";
import { O } from "../../observables.js";
/**
* Compatible with `npx -y web-component-analyzer examples/components/webComponent.js`
@@ -24,8 +24,8 @@ export class CustomHTMLTestElement extends HTMLElement{
on.attributeChanged(e=> console.log(e)),
on.disconnected(()=> console.log(CustomHTMLTestElement))
);
const name= S.attribute("name");
const preName= S.attribute("pre-name");
const name= O.attribute("name");
const preName= O.attribute("pre-name");
console.log({ name, test, preName});
return el("p").append(