> On 29 Jun 2017, at 01:17, [email protected] wrote:
>
> why in polymer older version we can direct to binding property value use
> other element like "{{$.core_input.value}}",but in polymer 2.0
> impossible.impossible.
> <core-input willvalidate placeholder="Type something..."
> inputvalue="wwwwwwwww" value="wwwwwwwww" id="core_input"></core-input>
> <core-input willvalidate placeholder="Type something..." inputvalue="{{
> $.core_input.value }}" value="{{ $.core_input.value }}"
> id="core_input2"></core-input>
Use a proper variable when binding:
—
<core-input id=“core_input” value=“{{core_input_value}}”></core-input>
<core-input inputvalue=“[[core_input_value]]”></core-input>
—
Alternatively use a computed binding:
—
<core-input id=“core_input” value=“foo”></core-input>
<core-input inputvalue=“[[core_input_value()]]”></core-input>
class your_component extends Polymer.Element {
// fill the rest yourself per standard patterns
core_input_value() {
return this.$.core_input.value;
}
}
—
Regards,
Daniel Llewellyn.
Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/polymer-dev/F52A9E68-99C5-4008-B33E-2F59C50BFD38%40bowlhat.net.
For more options, visit https://groups.google.com/d/optout.