title: angularjs service function return object
body: <p>when I use a service function to define a service in angularjs, can I return a object like the following code</p>
  
  <pre><code>angular.module('myApp').service('mySerivce',function(){
      return {
          add: function(){};
      };
  });
  </code></pre>
  
  <p>I cannot find any document about this programming style.</p>