The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Getting Input Text with Map

Getting Input Text with Map

1:46
By default, Inputs will push input events into the stream. This lesson shows you how to use `map` to convert the input event into the text you actually want.
Watch this lesson now
Avatar
egghead.io

By default, Inputs will push input events into the stream. This lesson shows you how to use map to convert the input event into the text you actually want.

Avatar
Fabio Bedini

Just to avoid headache
(if you are using angular2)
to try typing event.target

.map((e: KeyboardEvent) => (<HTMLInputElement>event.target).value)
In reply to egghead.io
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?