Search code examples
dartdart-polymer

Setting hardcoded value in bound attribute


I have a component with a "label" attribute and since this label will not change, I want to specify it when I declare the component:

<parking-list
        label="PARKINGS"
        parkings="{{parkings}}"
        on-showparking="parkingList_showParkingHandler"></parking-list>
<parking-list
        label="SHOP AND GO"
        parkings="{{shopAndGoParkings}}"
        on-showparking="parkingList_showParkingHandler"></parking-list>

The label value is not rendered properly though. I worked around this with label="{{'PARKINGS'}}". Is this simply not supported or will this be supported in a future release?


Solution

  • should be fixed in 0.8.0 see discussion