What\'s the correct way to communicate between controllers?
I\'m currently using a horrible fudge involving window
:
function StockSubgro
Regarding the original code - it appears you want to share data between scopes. To share either Data or State between $scope the docs suggest using a service:
Ref: Angular Docs link here