title: Adding properties to AngularJS service
body: <p>I have an AngularJS service that looks like this:</p>
  
  <pre><code>angular.module('myModule', [])
    .factory('$myService', function () {    
      return {
        getName: function () {
          return 'Bill';
        },
  
        isAvailable: function () {
          return true;
        }
      };
    })
  ;
  </code></pre>
  
  <p>Is there a way to add properties? Currently, the service has function (aka <code>$myService.isAvailable()</code>). I'm curious, is there a way to have something like <code>$myService.someProperty</code>? If so, how? Or, does everything in a service have to be a function?</p>
  
  <p>Thank you!</p>