title: How can I send an object with $broadcast?
body: <p>I have the following:</p>
  
  <pre><code>$scope.$watch('tableForm.$pristine', function (newValue) {
      $rootScope.$broadcast("tableDataUpdated", 
          { state: $scope.tableForm.$pristine });
  });
  </code></pre>
  
  <p>I also tried:</p>
  
  <pre><code>$scope.$watch('tableForm.$pristine', function (newValue) {
      var tableForm = { pristine: $scope.tableForm.$pristine };
      $rootScope.$broadcast("tableDataUpdated", tableForm);
  });
  </code></pre>
  
  <p>When the tableForm <code>$pristine</code> state changes then the value of <code>$scope.tableForm.$pristine</code>  is set to <code>False</code> and this message is broadcast. </p>
  
  <p>However when I try to receive the message the value of "state" is not defined:</p>
  
  <pre><code>$rootScope.$on("tableDataUpdated", function (args) {
      alert(args.state);
  });
  </code></pre>
  
  <p>I also tried:</p>
  
  <pre><code>$rootScope.$on("tableDataUpdated", function (args) {
      alert(args.tableForm);
  });
  </code></pre>
  
  <p>Still I seem not to be able to send the object and have it received </p>