-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
ObservableList not updated in template #21568
Comments
This comment was originally written by @zoechi I encountered this very recently with a Map. @observable and add it to the template of your Polymer element like {{myList}} Id doesn't get updated when you add/remove/modify items in the List.
If you do something like void addItem(Event e) { then the view is updated. Using a filter didn't help either String asString(List val) { {{myList | asString}} What should work is String _oldMyListString; myList.changes.listen((recs) { {{myListString}} caution: code not tested Maybe someone from the Dart team knows a better workaround... |
Added Area-Pkg, Pkg-Observe, Triaged labels. |
This has caused a lot of confusion and come up a few times, I might spend a bit of time today seeing if I can get it working correctly. This is really only useful as a debugging feature but I think that even if its just for that its worth getting right. |
This issue has been moved to dart-archive/observe#72. |
This issue was originally filed by [email protected]
What steps will reproduce the problem?
What is the expected output? What do you see instead?
I should see the list updated (["new element"]), instead the list is not updated ("[]").
What version of the product are you using?
Dart 1.7.2, polymer-expression 0.13.0
Please provide any additional information below.
The text was updated successfully, but these errors were encountered: