When using Angular's standard route, I found that child controllers were able to access the parent $scope like this:
<div ng-controller="ParentCtrl">
<ng-view></ng-view>
</div>
However, when switching to the Angular 1.5 Component Router, it seems that child controllers cannot access the ParentCtrl Data within ng-outlet
. The only change in the markup is replacing ng-view
with ng-outlet
.
Is there a way to access Parent Controller information within a Child Controller based on an ng-outlet
in the Component Router? Or are there alternative methods to achieve this?