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:
src/app/input-button-unit/input-button-unit.component.html
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.
Last updated
Was this helpful?