Oct 22, 2024
Hi Isthatmejs
First, kudos on your article!
There just seems to be a typo in your story. In the code listing that introduces linkedSignal, you have the following code:
------------
selectPost(idx: number) {
this.postState().selectedPostIndex.set(idx);
}
------------
It seems you have erroneously copied and pasted the "postState()" signal from above.
Kind regards