Working with $scope.$emit and $scope.$on

Working with $scope.$emit and $scope.$on

How can I send my $scope object from one controller to another using .$emit and .$on methods?function firstCtrl($scope) { $scope.$emit('someEvent', [1,2,3]);}function secondCtrl($scope) { $scope.$on('someEvent', function(mass) { conso

SecurityError: Blocked a frame with origin from accessing a cross-origin frame

SecurityError: Blocked a frame with origin from accessing a cross-origin frame

I am loading an