mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
docs: Add the missing function call to use the signal's actual value
(cherry picked from commit e18aac88d4)
This commit is contained in:
parent
24f9d760a6
commit
bf19fd499f
1 changed files with 1 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue