title: Angular coffeescript syntax error
body: <p>Trying to convert working JS to coffee script in my angular app but its raises <code>Error: [ng:areq] Argument 'ContactController' is not a function, got undefined</code></p>
  
  <p>Here is my code.</p>
  
  <pre><code>angular.module("app", [
    "ngResource"
    "ngRoute"
  ]).run ($rootScope) -&gt;
  
  $rootScope.log = (thing) -&gt;
  console.log thing
  </code></pre>
  
  <p>The following js works fine</p>
  
  <pre><code>angular.module("app", ["ngResource", "ngRoute"]).run(function($rootScope) {
    $rootScope.log = function(thing) {
      console.log(thing);
    };
  });
  </code></pre>