b. Explore

Just like we did in the previous chapter, when we logged $event, you can do the same with #inputElementRef.

Playground: Change the method changeTitle so it will receive the whole element reference and log it to the console:

<input #inputElementRef
<button (click)="changeTitle(inputElementRef)">
changeTitle(inputElementReference) {
this.title = inputElementReference.value;

Don't forget to put the code back the way it was after you're finished experimenting! It's best to pass to a method exactly the value it needs, instead of the whole object.