> For the complete documentation index, see [llms.txt](https://nggirls-australia.gitbook.io/tutorial/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nggirls-australia.gitbook.io/tutorial/workshop-todo-list/element-ref/explore.md).

# a. 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:

{% code title="src/app/input-button-unit/input-button-unit.component.html" %}

```markup
<input #inputElementRef
       [value]="title"              
       (keyup.enter)="changeTitle(inputElementRef)">

<button (click)="changeTitle(inputElementRef)">
  Save
</button>
```

{% endcode %}

```typescript
changeTitle(inputElementReference) {
  console.log(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.
