How to use Map literals in Polymer binding #507
Comments
<img src="https://avatars.githubusercontent.com/u/405837?v=3" align="left" width="48" height="48"hspace="10"> Comment by zoechi When I change my published field to @published String options I get this error Breaking on exception: type '_LinkedHashMap' is not a subtype of type 'String' of 'value'. @published var options works so far. @published Map options too. |
<img src="https://avatars.githubusercontent.com/u/2049220?v=3" align="left" width="48" height="48"hspace="10"> Comment by sigmundch Added this to the 1.6 milestone. |
<img src="https://avatars.githubusercontent.com/u/2049220?v=3" align="left" width="48" height="48"hspace="10"> Comment by sigmundch Removed this from the 1.6 milestone. |
<img src="https://avatars.githubusercontent.com/u/2049220?v=3" align="left" width="48" height="48"hspace="10"> Comment by sigmundch Removed Polymer-P-1 label. |
<img src="https://avatars.githubusercontent.com/u/2049220?v=3" align="left" width="48" height="48"hspace="10"> Comment by sigmundch Added PolymerMilestone-Next label. |
<img src="https://avatars.githubusercontent.com/u/2049220?v=3" align="left" width="48" height="48"hspace="10"> Comment by sigmundch Removed Polymer-Milestone-Next label. |
<img src="https://avatars.githubusercontent.com/u/405837?v=3" align="left" width="96" height="96"hspace="10"> Issue by zoechi
Originally opened as dart-lang/sdk#19461
I tried to do assign a map to a published attribute.
Map literals work for the class attribute but I thought it should also work for custom attributes.
@published Map options;
<bwu-sparkline options="{{ {'width': 34, 'height': 16} }}"></bwu-sparkline>
I get this error:
Breaking on exception: type 'String' is not a subtype of type 'Map' of 'value'.
Dart VM version: 1.5.0-edge.37335 (Fri Jun 13 16:07:16 2014) on "linux_x64"
polymer_expressions 0.10.0
polymer 0.10.1+1
The text was updated successfully, but these errors were encountered: