Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Bound Polymer variables not updating (problem w/ observable?) #15512
This issue was originally filed by chris....@gmail.com
What steps will reproduce the problem?
Per the example, the text below the button should update to reflect the number of times the button has been clicked. The text always says "0 times".
This is with:
Dart VM version: 184.108.40.206_r30188 (Tue Nov 12 01:15:45 2013) on "linux_x64"
And a pubspec.yaml that includes only:
BUT, if I explicitly downgrade observable to 0.9.0:
This comment was originally written by chri...@gmail.com
Unfortunately, this still happens. It's not quite as bad as it used to be. Actually, it may not even be a true bug anymore.
The attached, installed in pubspec.yaml, web/index.html, lib/click-counter.html, and lib/click_counter.dart, and pub installed, will currently run with Polymer 0.9.5+2.
If you pub serve the application, access it in Dartium, and click the “Click Me” button, the counter is not updated. It won't work in other browsers due to a lack of a pubspec.yaml transformer.
My expectation is that, even without a transformer, this ought to still work in Dartium. The element is evaluated and added to the page as expected. But the observable variable is not updated.
Perhaps it is unreasonable to expect that this work without a transformer, but it used to (a long while back) and everything else does. Not a huge bug and there is a workaround.
Perhaps just a note in documentation somewhere?