1
0
mirror of https://github.com/jaandrle/deka-dom-el synced 2025-12-15 05:43:45 +01: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,4 +1,4 @@
import { style, el, elNS, on, S, scope } from '../exports.js';
import { style, el, elNS, on, O, scope } from '../exports.js';
const className= style.host(fullNameComponent).css`
:host form{
display: flex;
@@ -7,8 +7,8 @@ const className= style.host(fullNameComponent).css`
`;
export function fullNameComponent(){
const labels= [ "Name", "Surname" ];
const name= labels.map(_=> S(""));
const full_name= S(()=>
const name= labels.map(_=> O(""));
const full_name= O(()=>
name.map(l=> l()).filter(Boolean).join(" ") || "-");
scope.host(
on.connected(()=> console.log(fullNameComponent)),