I can get my <iron-meta>
instance to work properly when using a static value. But when I bind the value to a dynamic variable (using {{}}
) it <iron-meta>
no longer behaves as expected.
Does <iron-meta>
support binding its value to dynamic variables?
<iron-meta id="meta" key="info" value="foo/bar"></iron-meta> // works
<iron-meta id="meta" key="info" value="{{str}}"></iron-meta> // fails
Previous work
This question is a refinement of this question in order to clarify that the ONLY thing causing the problem is the change from a static string value to a dynamic string value binding. I was getting a lot of other suggesting that had nothing to do with the change from static to dynamic so I thought it might be best to rewrite the question to clarify that. But the entire code context is contained in the links there if that would help.
Alternative solutionsThere has been some recent chatter about using <iron-localstorage>
. Perhaps that is the best way to go for dynamic binding essentially creating global variables?