Communication between tabs controller

I have 4 tabs, all of them have a controller. The data are injected into the $scope by using the resolve property that calls a service. One action in tab A should refresh tab B if the controller B has already been created.

What is the best way to communicate from tab A to tab B controllers?

Option 1: broadcast an event from the parent controller of all tabs: $scope.$parent.$broadcast and $scope.on

Option 2: $rootScope.$emit + $rootScope.$on

Another option?


You should check out this tutorial on shared data and functions between controllers. Helped me out a lot. It should point you in the right direction