Observable support in change detection #773
Description
There is a lot effort going on to improve performance in Angular and
there are several situations where developers encounter problems (at least negative suprises) because some model changes are not recognized (collections) without some special effort.
Wouldn't it make sense to support something like the observableCollection as it is used in Polymer (https://pub.dartlang.org/packages/observe)? (found the source here https://chromium.googlesource.com/external/dart/+/refs/heads/master/dart/pkg/observe)
I haven't investigated how this works in detail but it is about collections (AFAIK currently only List/Map) that notify about being changed.
This could be extended by defining a pattern how every kind of object can notify Angular about changes by (e.g. implementing an interface ChangeNotifier or whatever).
As a next step I imagine an object using this pattern being able to notify the collection it is stored in about changes and the collection propagates it to parties interested in changes in the collection.
I think this could greatly improve developer experience without to much influence on the performance.
What do you think?
EDIT
seems this already covers this
Layer 1: Object.observe Polyfill