Property Binding

Learn how to bind properties to an attribute.

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:

  1. We’ll create a property to store the input’s value.
  2. We’ll listen to the input event on the
...