I have a controller embedded using the ng-controller tag and it works fine but i've also got an external controller who needs to call one function of this controller:
<div ng-controller='NavigationController'>
<!-- some html-->
</div>
And the controller
app.controller('NavigationController', function ($scope) {
$scope.downloadItems = function(value) {
//do something
}
})
Now I want to trigger The downloadItems method from an other controller.
And I can't find it anywhere how this should be done?