New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use Map literals in Polymer binding #19461
Comments
This comment was originally written 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. |
Added this to the 1.6 milestone. |
Removed this from the 1.6 milestone. |
Removed Polymer-P-1 label. |
Added PolymerMilestone-Next label. |
Removed Polymer-Milestone-Next label. |
This issue has been moved to dart-archive/polymer-dart#507. |
This issue was originally filed by @zoechi
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: