OLD | NEW |
1 # iron-input | 1 # iron-input |
2 | 2 |
3 An input with data binding. | 3 An input with data binding. |
4 | 4 |
5 By default you can only get notified of changes to an `input`'s `value` due to u
ser input: | 5 By default you can only get notified of changes to an `input`'s `value` due to u
ser input: |
6 | 6 |
7 ```html | 7 ```html |
8 <input value="{{myValue::input}}"> | 8 <input value="{{myValue::input}}"> |
9 ``` | 9 ``` |
10 | 10 |
11 `iron-input` adds the `bind-value` property that mirrors the `value` property, a
nd can be used | 11 `iron-input` adds the `bind-value` property that mirrors the `value` property, a
nd can be used |
12 for two-way data binding. `bind-value` will notify if it is changed either by us
er input or by script. | 12 for two-way data binding. `bind-value` will notify if it is changed either by us
er input or by script. |
13 | 13 |
14 ```html | 14 ```html |
15 <input is="iron-input" bind-value="{{myValue}}"> | 15 <input is="iron-input" bind-value="{{myValue}}"> |
16 ``` | 16 ``` |
OLD | NEW |