In my angular application, I want to invoke a function from a nested controller. For example, below I want in this current view of container, which has its own containerCtrl lets say, to be able to press this button but invoke a function called 'buttonPress' that is defined in the Ctrl1 controller. Right now, I can't do that since, well its just not defined within the containerCtrl scope.
HTML:
<div id="container">
<button ng-click="Ctrl1.buttonPress()">I WANT TO PRESS THIS</button>
<div ng-controller='Ctrl1'>
<div ng-controller='Ctrl2'>
</div>
Is there some way to invoke that function?