Ravi Teja Gudapati
Ravi Teja Gudapati

Reputation: 2879

Polymer.dart: How to set read-only property to read-write attribute?

I have a polymer component(lets call it component-one) which exposes an attribute value. I want to use this in another polymer component which has an Observable list property called data. I want to do the following:

<template repeat="{{obj in data}}">
    <component-one value="{{obj}}"></component-one>
</template>

But it generates error saying that there is no "obj=" method.

Can somebody let me know how to data-bind a read-only property to a read-write attribute?

Thanks for your time!

Upvotes: 2

Views: 805

Answers (1)

G&#252;nter Z&#246;chbauer
G&#252;nter Z&#246;chbauer

Reputation: 657466

Seems you are running into this bug https://code.google.com/p/dart/issues/detail?id=17981. This bug seems to be fixes for about 6 weeks.

You should check that you use a recent Dart version and a recent Polymer package. If this doesn't help please add a comment.

Upvotes: 1

Related Questions