2018-12-03 13:42:53 -05:00
|
|
|
<h2>Child component with @Output()</h2>
|
|
|
|
|
|
|
|
<!-- #docregion child-output -->
|
2021-03-19 16:44:28 -04:00
|
|
|
<label for="item-input">Add an item:</label>
|
|
|
|
<input type="text" id="item-input" #newItem>
|
2018-12-03 13:42:53 -05:00
|
|
|
<button (click)="addNewItem(newItem.value)">Add to parent's list</button>
|
|
|
|
<!-- #enddocregion child-output -->
|