In this recipe, we will show you how to bind an input value from a text field or text area to a variable; so in effect, we now perform data binding from the UI to the code, and we have two-way data binding. You can find the code in the project
web\index.html, where a component with the name
pol-textis imported through the following line:
From this, we know that the component is defined in
pol_text.html, and the code behind it is in a file named
pol_text.dart. For a discussion of the other tags, see the first recipe.
pol-textis defined in
import'package:polymer/polymer.dart'; @CustomTag('pol-text') ...