title: angular provider error - must define $get factory method
body: <p>This coffee script code is trying to create an angular provider but I get this message: Provider 'ItemsProvider' must define $get factory method.</p>
  
  <p>I have the $get method set. Any idea of what is happening?</p>
  
  <pre><code>'use strict'
  
      app = angular.module('logica-erp') 
  
      app.provider 'ItemsProvider', [ -&gt;
  
          this.$get = -&gt;
                  return {
  
                  }
  
      ]
  </code></pre>
  
  <p>It fail to load with this message:</p>
  
  <pre><code>Error: [$injector:modulerr] Failed to instantiate module logica-erp due to:
  [$injector:pget] Provider 'ItemsProvider' must define $get factory method.
  </code></pre>
  
  <p><strong>EDIT:</strong>
  This is the javascript generated:</p>
  
  <pre><code>(function() {
    'use strict';
    var app;
  
    app = angular.module('logica-erp');
  
    app.provider('ItemsProvider', [
      function() {
        return this.$get = function() {
          return {};
        };
      }
    ]);
  
  }).call(this);
  </code></pre>