We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
An examples in Polymer primer, one-way binding for upward in Property change notification and Two-way binding is not working properly as much as I thought.
one-way binding for upward
notify:true
readOnly:true
notify:false
<dom-module id="custom-elements"> <template> <custom-element prop="{{value}}"></custom-element> </template> </dom-module> <script> Polymer({ is: "custom-elements", properties: { value: { type: String, observer: 'valueChanged' } }, valueChanged: function(newVal, oldVal) { console.log('Host value has been changed', newVal); } }) Polymer({ is: 'custom-element', properties: { prop: { type: String, notify: false, readOnly: true, } }, ready: function() { this.prop = "from child"; console.log(this.prop); // out "from child" if notify is false else out undefined } }); </script>
The text was updated successfully, but these errors were encountered:
Sorry. answer is in the primer doc downward. I have to use _setProp
_setProp
Sorry, something went wrong.
No branches or pull requests
An examples in Polymer primer,
one-way binding for upward
in Property change notification and Two-way binding is not working properly as much as I thought.notify:true
andreadOnly:true
: I couldn't change to 'prop' anyway.notify:false
andreadOnly:true
: I could change to 'prop' but never notify to hostThe text was updated successfully, but these errors were encountered: