title: "Uncaught object" when adding AngularJS to Brunch app
body: <p>Preface: As I am new to both AngularJS and Brunch, I want to learn the basics and build and app from scratch (i.e. from the <code>dead-simple</code> Brunch skeleton). I am well aware that there exist skeletons that specifically deal with bootstrapping an AngularJS/Brunch app and I have been studying their code in order to find out what "makes them work". But being the newbie I am, I don't see the solution to my problem...</p>
  
  <p><strong>The Problem:</strong> As long as I add <code>ng-app</code> (without any value) to the <code>html</code> element, AngularJS works just fine. But as soon as I add a value (i.e. <code>ng-app="MyApp"</code>) to this attribute, AngularJS stops working. The console in Chrome tells me that it encountered an <strong>"Uncaught object" in line 1695 of angular.js</strong>.</p>
  
  <p>It seems that the javascript added by Brunch is causing this: If I remove the code at the very top generated by Brunch in the app.js file of the public folder, again it works. But clearly that can't be the solution to my problem.</p>
  
  <p>Here is the code of my <code>app/assets/index.html</code>:</p>
  
  <pre><code>&lt;html ng-app="myApp"&gt;
      &lt;head&gt;
          &lt;title&gt;Test&lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;script src="app.js"&gt;&lt;/script&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>That's the code in my <code>app/app.coffee</code> (which is concatenated with Brunch and AngularJS code in the resulting <code>public/app.js</code>):</p>
  
  <pre><code>angular.module("myApp", [])
  </code></pre>
  
  <p><strong>The question:</strong> What am I missing? I see that in the specific skeletons the index.html file contains a <code>&lt;script&gt;require('MyApp')&lt;/script&gt;</code>, but adding it doesn't solve the problem.</p>
  
  <p>Any hint for a Brunch-rookie like me is very appreciated. Thanks!</p>