docs: Change 'function' to 'method' for clarity that getHereos() is (#35998)
intended as a class method Change 'function' to 'method' for clarity that getHereos() is intended as a class method in Tour of Heroes part 4. PR Close #35998
This commit is contained in:
parent
c1fdfd4f14
commit
ae4f81cbab
|
@ -139,7 +139,7 @@ sets the `heroService` parameter to the singleton instance of `HeroService`.
|
|||
|
||||
### Add `getHeroes()`
|
||||
|
||||
Create a function to retrieve the heroes from the service.
|
||||
Create a method to retrieve the heroes from the service.
|
||||
|
||||
<code-example path="toh-pt4/src/app/heroes/heroes.component.1.ts" header="src/app/heroes/heroes.component.ts" region="getHeroes">
|
||||
</code-example>
|
||||
|
|
Loading…
Reference in New Issue