dart-archive / polymer-dart

Polymer support for Dart
https://pub.dartlang.org/packages/polymer
BSD 3-Clause "New" or "Revised" License
180 stars 33 forks source link

How to set read only properties? #562

Closed jakemac53 closed 9 years ago

jakemac53 commented 9 years ago

Need to flush this out, its currently not obvious how it would work. Possibly setting the private variable and then calling notifyPath? In js land you get a magic setter method called _set{property_name}.

jakemac53 commented 9 years ago

Confirmed, setting the internal value and then calling notifyPath works.