Re: [WICG/webcomponents] [templates] A declarative JavaScript templating API (Issue #1069)

> ```js
> class Cat {
>   get name() {
>     return `${this.givenName}, the cat`;
>   }
> }
> 
> class Dog {
>   name() => {
>     return `${this.givenName}, the dog`;
>   }
> }
> ```
@NullVoxPopuli From what I understand, this would be an incorrect usage of Signals. I believe you're supposed to use `new Signal.Computed(...)` for such a scenario.

See: https://github.com/tc39/proposal-signals?tab=readme-ov-file#example---a-signals-counter

-- 
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/1069#issuecomment-2295099646
You are receiving this because you are subscribed to this thread.

Message ID: <WICG/webcomponents/issues/1069/2295099646@github.com>

Received on Sunday, 18 August 2024 03:51:01 UTC