News for hackers. Stuff that matters.
Re:Angular v16 by webprofusion on Thursday May 04, 2023 @01:05AM (#35811440)
The example includes: `effect(() => console.log('Name changed:', this.firstName()));`

But the text says "We also declare an effect, which callback will execute every time we change the value of any of the signals it reads — in this case fullName"

Surely fullName is not involved at all?

Re:Angular v16 by vulcanash999 on Thursday May 04, 2023 @02:12AM (#35811773)
I agree, it probably should have been `effect(() => console.log('Name changed:', this.fullName()));`

That makes more sense given the context.

Re:Angular v16 by JenrHywy on Thursday May 04, 2023 @02:31AM (#35811916)
It looks like they've updated the example to use fullName