I want to access or manipulate a scope's parent's parent without getting too too complicated. The controller as fashion allows for naming the parent controller as such: this.applicationCtrl.something
given applicationCtrl > parent1Ctrl > child1Ctrl - siblingOfChild1Ctrl
To give you a better example, I have an applicationCtrl on the <body>
tag, I have a side panel with sidePanelCtrl
and the content with contentCtrl
with a nested contentChildCtrl
With the controller as model, I can call or change things on the sidePanelCtrl
by calling this.sidePanelCtrl
, can I do the same if I just want to use $scope
method?
This is specifically for the contentChildCtrl
where I do not want to write $scope.$parent.$parent
which still will only get me to the applicationCtrl
and not the sidePanelCtrl