I am a complete beginner to AngularDart (and Dart); I followed the tutorials but this is something I can't seem to find a answer to.
I have two NgComponents that work perfectly:
<colorImage car-color="ctrl.car.color"></colorImage>
<carImage car="ctrl.car"></carImage>
My controller "ctrl" has a property named "car" and "car" has a property named "color". When "car.color" changes, the colorButton NgComponent updates, but the carImage NgComponent does not.
How can I trigger an update of carImage when "car.color" changes?
Thanks!!
Here is working example without a
scope
and awatch
features. I believe this is an angulardartish solution.Something more about the issue: https://stackoverflow.com/a/21958268/2777805
ang_testi.dart
ang_testi.html
You have to set a watch to
car.color
inside your CarImage. How this looks depends on what data structure you use for car.