I have a template which is served by 2 controllers. The parent controller is coming from a configuration in ui-router. The child controller is in the same template file but using ng-controller like <div ng-controller="ChildCtrl">.
On the parent controller, I used $scope.model object. I'm accessing $scope.model from the child controller using $scope.model and it's working great. However, my team mate is complaining that it's hard to troubleshoot. He was wondering where $scope.model was coming from. What are some better solutions?