mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs: change class field external link to point to the right page (#52919)
PR Close #52919
This commit is contained in:
committed by
Andrew Kushnir
parent
98376f2c09
commit
2580eccc2f
@@ -67,9 +67,9 @@ Now that we have the basic structure for the component, let’s learn more about
|
||||
|
||||
#### State
|
||||
|
||||
When defining data that you want the component to manage, this can be accomplished by declaring it by defining [class fields](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Public_class_fields).
|
||||
When defining data that you want the component to manage, this can be accomplished by declaring it by defining [class fields](https://www.typescriptlang.org/docs/handbook/2/classes.html#fields).
|
||||
|
||||
In the example of a `todo-list-item.component.ts`, there are two properties we want to track: `taskTitle` and `isComplete`. Using the [class field syntax](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Public_class_fields), they can be defined as follows:
|
||||
In the example of a `todo-list-item.component.ts`, there are two properties we want to track: `taskTitle` and `isComplete`. Using the [class field syntax](https://www.typescriptlang.org/docs/handbook/2/classes.html#fields), they can be defined as follows:
|
||||
|
||||
```ts
|
||||
// 📄 todo-list-item.component.ts
|
||||
|
||||
Reference in New Issue
Block a user