22 lines
386 B
HTML
22 lines
386 B
HTML
<!-- #docregion control-binding -->
|
|
<label>
|
|
Name:
|
|
<input type="text" [formControl]="name">
|
|
</label>
|
|
|
|
<!-- #enddocregion control-binding -->
|
|
|
|
<!-- #docregion display-value -->
|
|
|
|
<p>
|
|
Value: {{ name.value }}
|
|
</p>
|
|
<!-- #enddocregion display-value -->
|
|
|
|
<!-- #docregion update-value -->
|
|
|
|
<p>
|
|
<button (click)="updateName()">Update Name</button>
|
|
</p>
|
|
<!-- #enddocregion update-value -->
|