7 lines
229 B
HTML
7 lines
229 B
HTML
<h2>Child component with @Output()</h2>
|
|
|
|
<!-- #docregion child-output -->
|
|
<label>Add an item: <input #newItem></label>
|
|
<button (click)="addNewItem(newItem.value)">Add to parent's list</button>
|
|
<!-- #enddocregion child-output -->
|