I have the below structure of html/angular:
<div controller="one-controller">
<div controller="two-controller">
<div controller="three-controller">
<div controller="four-controller">
</div>
</div>
</div>
</div>
I want to access the scope of "one-controller" from "four-controller", how do I do that.
I have read that typically all child controllers have by default access to parents controller, but in my case its not working. As read, I see that for one level up, $scope.$parent... will work, but in my case, how do I access the top level one.
Do I need to use $rootScope for that or is there any other way.