docs: update link to the TypeScript handbook (#47075)

Closes #47070
PR Close #47075
This commit is contained in:
Pawel Kozlowski 2022-08-08 12:41:30 +02:00 committed by Dylan Hunn
parent 2548214ba2
commit 7f992326e4

View file

@ -17,7 +17,7 @@ In the following example, the `HeroListComponent` class includes:
* A `selectedHero` property that holds the last hero selected by the user.
* A `selectHero()` method sets a `selectedHero` property when the user clicks to choose a hero from that list.
The component initializes the `heroes` property by using the `HeroService` service, which is a TypeScript [parameter property](https://www.typescriptlang.org/docs/handbook/classes.html#parameter-properties) on the constructor. Angular's dependency injection system provides the `HeroService` service to the component.
The component initializes the `heroes` property by using the `HeroService` service, which is a TypeScript [parameter property](https://www.typescriptlang.org/docs/handbook/2/classes.html#parameter-properties) on the constructor. Angular's dependency injection system provides the `HeroService` service to the component.
<code-example header="src/app/hero-list.component.ts (class)" path="architecture/src/app/hero-list.component.ts" region="class"></code-example>