Using Angular's standard route I was able to have child controllers access the parent $scope:
<div ng-controller="ParentCtrl">
<ng-view></ng-view>
</div>
Any Child controllers within ng-view
would be able to access the ParentCtrl Data, but with the Angular 1.5 Component Router this doesnt seem like the case. The only difference in the above markup is instead of ng-view
it's ng-outlet
.
Does anyone know how to access Parent Controller information within a Child Controller based in an ng-outlet
in the Component Router? Or is there any other way to access parent data?