浮云间
举例:.controller('a',['scope',$rootScope',function($scope,$rootScope){$rootScope.u=$scope.username1}]);.controller('b',['scope',$rootScope',function($scope,$rootScope){$scope.username2=$rootScope.u}]);说明:通过父子作用域来传递,a中的username1通过子作用域传递给父作用域$rootScope,然后在b中通过父作用域$rootScope传递给b中的username2,从而实现两个controller之间的数据传递