I have a div which wraps three other's, each with its own controller. I want to dynamically display a message based on results obtained from each controller. For instance if 1 of the 3 arrays resolved have length greater than 0, I want to to reflect that in a warning message. I attempted to place a parent controller around the three child controllers but there is no way for me to access the scope of the children from the parent and this seems incorrect anyway. Any help would be much appreciated.
<div id="pp-summary" ng-controller='PPSummaryCtrl as summCtrl'>
<div id="pp-stats-summary" ng-controller='PlayerProfileStatsCtrl as s'>
<page-section section-title="'Recent Statistics'" excel="{ data: s.statList, definitions: s.summaryHeaders, name: s.player.fullName + ' - Summary Stats' }" >
<core-table
table-sort
parent-child-rows
data="s.statList"
footer-data="s.statTotals"
columns="s.summaryHeaders">
</core-table>
</page-section>
</div>
<div ng-controller="PPScoutingCtrl as e">
<h3 ng-if="!e.permission" id="no-eval-message">
You do not have permissions to view evals on file for this player.
</h3>
<page-section ng-repeat="type in e.evalTypes" section-title="'Recent '+type.description + ' Evals'" ng-if="e.evalsByType[type.evalTypeLk]"
excel="{data: e.evalsByType[type.evalTypeLk], definitions: e.getColumns(type.evalTypeLk), name: e.player.fullName + ' ' + type.description}"
>
<c-table columns="e.getColumns(type.evalTypeLk)" data="e.evalsByType[type.evalTypeLk]" group-rows="true" click-row="e.selectEval" class="table-overflow wrap-last-column"></c-table>
</page-section>
</div>
<div ng-controller="PPNotesCtrl as n">
<page-section ng-if="n.notes" section-title="'Recent Notes'">
<c-table data="n.notes" click-row="n.selectNote" highlight="n.highlight" class="table-overflow" columns="n.noteColumns">
</c-table>
</page-section>
</div>
<h3 id="no-eval-message">
{{ summCtrl.getWarningMessage() }}
</h3>
</div>