I was trying to follow this exampled provided by the Angular creator Vojta. However, I can't seem to get the emit to work properly. Here is my fiddle: http://jsfiddle.net/nopctoday/fp2y3jur/2/
<div ng-module="myapp">
    <div ng-controller="ControllerZero">
        <button ng-click="pass_data()">BROADCAST</button>
    </div>
    <div ng-controller="ControllerOne">
        {{data}}
    </div>
</div>
and the simple js
var myModule = angular.module('myapp', []);
app.controller('ControllerZero',['$scope',function($scope){
    $scope.pass_data = function() {
        $scope.$emit('broadcasting', 'it succeeded!');
    };
}]);
app.controller('ControllerOne',['$scope', function($scope){
    $scope.data = "";
    $scope.$on('broadcasting', function(event, data) {
        $scope.data = data;
    });
}]);
 
     
     
     
     
    