What\'s the correct way to communicate between controllers?
I\'m currently using a horrible fudge involving window:
window
function StockSubgro
You can access this hello function anywhere in the module
Controller one
$scope.save = function() { $scope.hello(); }
second controller
$rootScope.hello = function() { console.log('hello'); }
More info here