How to make two-way data binding between service and controller
问题 I have a service and I have been trying to make a two-way binding to one of the service's properties within controller. Below is a code for three different approaches. The first uses $watch() , the second uses getter/setter and the third uses attribute with @NgTwoWay -binding. I think the third one is the cleanest solution, but is it possible to write the code without the wrapper controller (test-ctrl)? Is there a better way to do the binding? ang.dart import 'package:angular/angular.dart';