include template part send variable code example
Example 1: template reference variable
show(lastName: HTMLInputElement){ console.log(lastName.value);}
Example 2: template reference variable
<button (click)="show(lastNameInput)">Show</button>