title: Angular JS + CoffeeScript + JSFiddle: Code not working
body: <p>I started playing around with CoffeeScript and AngularJS today and noticed that there is not a whole lot of documentation or examples on how to correctly write AngularJS using CoffeeScript. My own experimentation with it seems not to be working. As a pedagogical excersice, could someone point me as to why this is fiddle is not working?</p>
  
  <p><a href="http://jsfiddle.net/dralexmv/8km8x/4/" rel="nofollow">http://jsfiddle.net/dralexmv/8km8x/4/</a></p>
  
  <p>It claims the InventoryModule is not defined. Although I have declared it in the first line.</p>
  
  <p>This is the HTML: </p>
  
  <pre><code>&lt;div ng-app='InventoryModule' ng-controller='InventoryController'&gt;
  &lt;table&gt;
      &lt;tr ng-repeat='item in items'&gt;
          &lt;td&gt;{{item.title}}&lt;/td&gt;
          &lt;td&gt;{{item.price | currency}}&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p></p>
  
  <p>And this is the CoffeeScript:</p>
  
  <pre><code>inventoryModule = angular.module 'InventoryModule', []
  
  inventoryModule.factory 'Items', -&gt;
      items = {}
      items.query -&gt; [
          {title: 'Table', price: '5'},
          {title: 'Chair', price: '10'}
      ]
      items
  
  inventoryModule.controller 'InventoryController', ($scope, Items) -&gt;
      $scope.items = Items.query
  </code></pre>