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
As such, your binding data-id="{{test}}" sets the dataId property on the element (which isn't anything a div).
In order to bind to dataset properties via data-* attributes, you need to use explicit attribute binding, which uses $= syntax: data-id$="{{test}}". That'll work for you.
In Polymer 1.0 Bound data-* attributes are not getting set on elements.
It applies to both custom and standard HTML elements.
This short example:
Produces the following (note the lack of the data-id attribute):
The only way to get the data-* element on the div is with javascript:
This worked correctly in Polymer 0.5.
The text was updated successfully, but these errors were encountered: