title: Sharing Data Between Controllers, Angularjs 1.3 version
body: <p>I am working on <a href="http://jsfiddle.net/Jq2RQ/" rel="nofollow">this jsfiddle</a>, it is in angularjs 1.2.17<br>
  However when I try the <a href="http://jsfiddle.net/Jq2RQ/1/" rel="nofollow">same script</a> with angularjs 1.3.14 it gives error, see console.  </p>
  
  <p>Finally when I try <a href="http://jsfiddle.net/m16un1Lp/1/" rel="nofollow">this fiddle</a> again with 1.3.14 version:</p>
  
  <pre><code>&lt;div ng-app='app'&gt;
      &lt;div ng-controller="firstctrl"&gt;
          &lt;input type="text" ng-model="data.msg" /&gt;
           &lt;h1&gt;{{data.msg}}&lt;/h1&gt;
  
      &lt;/div&gt;
      &lt;div ng-controller="secondctrl"&gt;
          &lt;input type="text" ng-model="data.msg" /&gt;
           &lt;h1&gt;{{data.msg}}&lt;/h1&gt;
  
      &lt;/div&gt;
  &lt;/div&gt;
  
  var app = angular.module('app', []);
  
  app.factory('Data', function () {
      return {
          msg: "I am data from a service"
      };
  });
  app.controller('firstctrl', ['$scope', function($scope, Data){
      $scope.data = Data;
  }]);
  app.controller('secondctrl', ['$scope', function($scope, Data){
      $scope.data = Data;
  }]);
  </code></pre>
  
  <p>I could not make it work: It does not give error but <code>data.msg</code> does not update in both controller.</p>
  
  <p>What have I done wrong?</p>