|
|
|
|
|
by v13inc
4779 days ago
|
|
I just tweaked the GP's example to used <input value="{{name}} ({{age}})"></input>, which rendered as expected. The field wasn't bound to the age or name properties though, which makes sense. 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 |
|