Skip to content
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

Closed
DartBot opened this issue Jun 15, 2014 · 7 comments
Closed

How to use Map literals in Polymer binding #19461

DartBot opened this issue Jun 15, 2014 · 7 comments
Labels
area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams.

Comments

@DartBot
Copy link

DartBot commented Jun 15, 2014

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

@DartBot
Copy link
Author

DartBot commented Jun 15, 2014

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.
I think this should work with

@published Map options

too.

@sigmundch
Copy link
Member

Added this to the 1.6 milestone.
Removed Priority-Unassigned label.
Added Priority-Medium label.

@sigmundch
Copy link
Member

Removed this from the 1.6 milestone.
Added Polymer-P-1 label.

@sigmundch
Copy link
Member

Removed Polymer-P-1 label.
Added Polymer-Milestone-Next label.

@sigmundch
Copy link
Member

Added PolymerMilestone-Next label.

@sigmundch
Copy link
Member

Removed Polymer-Milestone-Next label.

@DartBot DartBot added Type-Defect area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams. labels Jul 9, 2014
@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

This issue has been moved to dart-archive/polymer-dart#507.

@DartBot DartBot closed this as completed Jun 5, 2015
@kevmoo kevmoo removed the triaged label Mar 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams.
Projects
None yet
Development

No branches or pull requests

3 participants