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
I feel like this has to be user error, but thought I'd file it anyway...
Given this element:
Polymer({ is: 'x-custom', published: { user: String, manager: { type: Boolean, notify: true } }, created: function() { this.textContent = 'Hi I am ' + (this.user || 'nobody'); } });
Used as:
<x-custom user="Rob"></x-custom>
What render is Hi I am nobody. I was expecting Hi I am Rob.
Hi I am nobody
Hi I am Rob
The text was updated successfully, but these errors were encountered:
"created" is before attributes, "attached" is after and should work in this case.
On Thu Feb 19 2015 at 10:38:47 PM Rob Dodson [email protected] wrote:
I feel like this has to be user error, but thought I'd file it anyway... Given this element: Polymer({ is: 'x-custom', published: { user: String, manager: { type: Boolean, notify: true } }, created: function() { this.textContent = 'Hi I am ' + (this.user || 'nobody'); } }); Used as: What render is Hi I am nobody. I was expecting Hi I am Rob. — Reply to this email directly or view it on GitHub #1208.
Polymer({
is: 'x-custom',
published: { user: String, manager: { type: Boolean, notify: true } },
created: function() { this.textContent = 'Hi I am ' + (this.user || 'nobody'); }
});
— Reply to this email directly or view it on GitHub #1208.
Sorry, something went wrong.
If that's the case we should update the PRIMER.md https://github.com/Polymer/polymer/blob/0.8-preview/PRIMER.md#attribute-deserialization
Fixed via 0270e49
kevinpschaaf
No branches or pull requests
I feel like this has to be user error, but thought I'd file it anyway...
Given this element:
Used as:
What render is
Hi I am nobody
. I was expectingHi I am Rob
.The text was updated successfully, but these errors were encountered: