Property Binding
Learn how to bind properties to an attribute.
We'll cover the following...
We have a function that will run whenever a button is clicked. All it does is log a message. We’ll want to make it more useful by reversing some input text. First, we’ll need to store the value from the input.
Here’s how we’ll approach things:
- We’ll create a property to store the input’s value.
- We’ll listen to the
input
event on the