You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I having an issue trying to do something which seems like it should be simple.
When using a function to get a computed property, the property of the element is undefined.
I have found that after rendering (where I am logging out the property, it exists. Also, if I wrap the div inside a dom-if template with a condition which is always true, then it renders correctly:
I don't know whether I'm going about this the wrong way, or whether there is an issue with Polymer. It seems related to either #310 or #1500, but both of these seems to have been solved.
Any help greatly appreciated.
The text was updated successfully, but these errors were encountered:
Computed properties only compute when their dependencies are set or change. Your _getDisplayName function has a dependency on this.name but didn't declare it as a dependency in its signature, and so it is not being re-computed when name is set. Declaring name in the function signature (e.g. _getDisplayName(name) tells Polymer to compute whenever name changes.
Hey,
I having an issue trying to do something which seems like it should be simple.
When using a function to get a computed property, the property of the element is undefined.
See this JSBin: http://jsbin.com/dehiloqawo/edit?html,console,output
I have found that after rendering (where I am logging out the property, it exists. Also, if I wrap the div inside a dom-if template with a condition which is always true, then it renders correctly:
http://jsbin.com/jifiweyade/edit?html,console,output
I don't know whether I'm going about this the wrong way, or whether there is an issue with Polymer. It seems related to either #310 or #1500, but both of these seems to have been solved.
Any help greatly appreciated.
The text was updated successfully, but these errors were encountered: