File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
adev/src/content/guide/templates Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ import { Component, model } from '@angular/core';
7474 selector: 'app-counter',
7575 template: `
7676 <button (click)="updateCount(-1)">-</button>
77- <span>{{ count }}</span>
77+ <span>{{ count() }}</span>
7878 <button (click)="updateCount(+1)">+</button>
7979 `,
8080})
@@ -89,11 +89,9 @@ export class CounterComponent {
8989
9090### Enabling two-way binding between components
9191
92- If we break down the example above to its core , each two-way binding for components requires the following:
92+ If we break down the example above to its core, each two-way binding for components requires the following:
9393
94- The child component must contain:
95-
96- 1 . A ` model ` property
94+ The child component must contain a ` model ` property.
9795
9896Here is a simplified example:
9997
@@ -114,7 +112,7 @@ export class CounterComponent {
114112The parent component must:
115113
1161141 . Wrap the ` model ` property name in the two-way binding syntax.
117- 1 . Specify the corresponding property to which the updated value is assigned
115+ 1 . Assign a property or a signal to the ` model ` property.
118116
119117Here is a simplified example:
120118
You can’t perform that action at this time.
0 commit comments