Connecting 2 controllers and have access to the first controllers propertie in the second controller
问题 i have a problem with angular dart. 1 html file to trigger scopes and 2 controller classes index.html ... {{subCtrl.user.name}} ... first controller @Controller( selector: '[mainController]', publishAs: 'mainCtrl' ) class MainController{ User user = new User('testuser'); MainController(); } second controller @Controller( selector: '[subController]', publishAs: 'subCtrl' ) class SubController{ @NgOneWay('user') User user; // constructor SubController(){ getData(); } void getData(){ if(user !=