how can i access a function of one controller from another controller.
Here are two controllers, monthlyOptionsController and yearlyController.
myapp.controller("monthlyOptionsController", ['$scope','$injector', function($scope){
    $scope.initializeMonthlyCell   =   function(monthh){
    }
}]);
myapp.controller("yearlyController", ['$scope','$injector', function($scope){
    $scope.yearlyFunc   =   function(monthh){
         //here i want to access initializeMonthlyCell function 
         // like this initializeMonthlyCell(monthNumber);
    }
}]);
In yearlyFunc function i want to access initializeMonthlyCell function/ how can i do this. may be this repeat question.but anyone tell me how i can do this??
 
     
     
    