Does this mean that it is the value="{{age}}" attribute that is causing the binding?
What happens if I want to do something like: <input value="{{firstName}} {{lastName}}"></input>?
Does this mean that it is the value="{{age}}" attribute that is causing the binding?
What happens if I want to do something like: <input value="{{firstName}} {{lastName}}"></input>?
> <input value="{{firstName}} {{lastName}}">
This will work as you expect (http://jsbin.com/ecejiy/6/edit). Plus, if either of those property values change, the input.value will be updated accordingly.
By the way, you can also add/define your own syntax for MDV bindings: https://github.com/Polymer/mdv/blob/master/docs/syntax.md
In practice, this almost seems like "sugar" that automatically binds an input to a value if it's value contains ONLY the property.
To test out the binding sugar, I tried using this input: <input value=" {{name}}"></input> (note the space before {{name}}), which did not bind {{name}} to the input.
I'm still of the opinion that the binding should be more explicit.
Edit: typo fix