docs: Add the missing function call to use the signal's actual value

(cherry picked from commit e18aac88d4)
This commit is contained in:
Erik Wegner 2025-11-05 13:36:01 +01:00 committed by Andrew Scott
parent 24f9d760a6
commit bf19fd499f

View file

@ -35,7 +35,7 @@ Update the component to have an `input()` property matching the name of the para
```ts
id = input.required<string>()
hero = computed(() => this.service.getHero(id));
hero = computed(() => this.service.getHero(id()));
```
</docs-step>