title: AngularJS Error: Unknown provider: sharedServiceProvider <- sharedService
body: <p>I'm follow this example <a href="http://jsfiddle.net/simpulton/XqDxG/" rel="nofollow">http://jsfiddle.net/simpulton/XqDxG/</a>, also find here <a href="http://youtu.be/1OALSkJGsRw" rel="nofollow">http://youtu.be/1OALSkJGsRw</a></p>
  
  <pre><code>var myModule = angular.module('myModule', []);
  myModule.factory('mySharedService', function($rootScope) {
  var sharedService = {};
  
  sharedService.message = '';
  
  sharedService.prepForBroadcast = function(msg) {
      this.message = msg;
      this.broadcastItem();
  };
  
  sharedService.broadcastItem = function() {
      $rootScope.$broadcast('handleBroadcast');
  };
  
  return sharedService;
  });
  </code></pre>
  
  <p>After always getting this message</p>
  
  <blockquote>
    <p>Error: Unknown provider: sharedServiceProvider &lt;- sharedService</p>
  </blockquote>
  
  <p>I just copy exactly the code of jsfiddle. My surprise. The same error.
  Crazy, cause at jsfiddle the code work perfectly.</p>
  
  <p>Could be this code deprecated?</p>