mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs: Add the missing function call to use the signal's actual value
(cherry picked from commit e18aac88d4)
This commit is contained in:
committed by
Andrew Scott
parent
24f9d760a6
commit
bf19fd499f
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user