Skip to content Skip to sidebar Skip to footer

Polymer 1.x: Pre-loading Element Attributes

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.

Post a Comment for "Polymer 1.x: Pre-loading Element Attributes"