I am trying to load my element with a predefined value for the selected attribute of ['Colorado', 'South Dakota']. I expect to see the page load a map with an outline of all the U.
Solution 1:
I think it should be
selected='["Colorado", "South Dakota"]'
JSON needs double quotes.
Share
Post a Comment
for "Polymer 1.x: Pre-loading Element Attributes"
Post a Comment for "Polymer 1.x: Pre-loading Element Attributes"