title: Is it possible to create an AngularJS service without a module?
body: <p>In AngularJS there is a short form to create controllers, so you do not have to use a module for this. This short form is to simply define a function</p>
  
  <pre><code>function FooController ($scope) {
    // ...
  }
  </code></pre>
  
  <p>and reference it from the HTML markup using <code>ng-controller</code>:</p>
  
  <pre><code>&lt;div ng-controller="FooController"&gt;
    ...
  &lt;/div&gt;
  </code></pre>
  
  <p>Now, my question is, whether there is a similar "short form" to define services? In other words: Can you define (and use) a service without using a module?</p>
  
  <p><em>Please note that I know that it perfectly makes sense to structure your applications using modules, and not doing so could / should be regarded as bad practice. It's just that I am explaining AngularJS to someone who's completely new to it, and the question arose today. So it's just for curiosity and completeness.</em></p>