I have the following:
$scope.$watch(\'tableForm.$pristine\', function (newValue) { $rootScope.$broadcast(\"tableDataUpdated\", { state: $scope.t
That's because listener function has two arguments being passed into it, event, and args. See the angular docs.
event
args
Try:
$rootScope.$on("tableDataUpdated", function (event, args) { alert(args.state); });