title: how to install underscore.js in my angular application?
body: <p>I used yo-angular to generate my angularjs template with bootstrap/grunt/bower. I also want to use underscore in the app:</p>
  
  <pre><code>npm install underscore --save-dev
  </code></pre>
  
  <p>In the MainCtrl I am calling underscore.js just to see whether it works:</p>
  
  <pre><code>angular.module('yomanApp')
    .controller('MainCtrl', function ($scope) {
      $scope.awesomeThings = [
        'HTML5 Boilerplate',
        'AngularJS',
        'AngularJS'
      ];
  
      _.each([1,2,3],console.log);
    });
  </code></pre>
  
  <p>When I run the application with Chrome I get this errmsg in the console:</p>
  
  <pre><code>ReferenceError: _ is not defined
      at new &lt;anonymous&gt; (http://localhost:9000/scripts/controllers/main.js:18:5)
      at invoke (http://localhost:9000/bower_components/angular/angular.js:4203:17)
      at Object.instantiate (http://localhost:9000/bower_components/angular/angular.js:4211:27)
      at http://localhost:9000/bower_components/angular/angular.js:8501:28
      at link (http://localhost:9000/bower_components/angular-route/angular-route.js:975:26)
      at invokeLinkFn (http://localhost:9000/bower_components/angular/angular.js:8258:9)
      at nodeLinkFn (http://localhost:9000/bower_components/angular/angular.js:7768:11)
      at compositeLinkFn (http://localhost:9000/bower_components/angular/angular.js:7117:13)
      at publicLinkFn (http://localhost:9000/bower_components/angular/angular.js:6996:30)
      at $get.boundTranscludeFn (http://localhost:9000/bower_components/angular/angular.js:7135:16) &lt;div ng-view="" class="ng-scope"&gt;
  </code></pre>
  
  <p>After this error I added the module to the app config:
  'use strict';</p>
  
  <pre><code>/**
   * @ngdoc overview
   * @name yomanApp
   * @description
   * # yomanApp
   *
   * Main module of the application.
   */
  angular
    .module('yomanApp', [
      'ngAnimate',
      'ngCookies',
      'ngResource',
      'ngRoute',
      'ngSanitize',
      'ngTouch',
      'underscore'
  
    ])
    .config(function ($routeProvider) {
      $routeProvider
        .when('/', {
          templateUrl: 'views/main.html',
          controller: 'MainCtrl'
        })
        .when('/about', {
          templateUrl: 'views/about.html',
          controller: 'AboutCtrl'
        })
        .when('/accordeon', {
          templateUrl: 'views/accordeon.html',
          controller: 'IssuesCtrl'
        })
        .otherwise({
          redirectTo: '/'
        });
    });
  </code></pre>
  
  <p>Now I am getting this error:</p>
  
  <pre><code>Uncaught Error: [$injector:modulerr] Failed to instantiate module yomanApp due to:
  Error: [$injector:modulerr] Failed to instantiate module underscore due to:
  Error: [$injector:nomod] Module 'underscore' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
  </code></pre>
  
  <p>Last thing I tried was adding it to the index.html:</p>
  
  <pre><code>&lt;script src="node_modules/underscore/underscore.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>This results in the same error as above. Also get a 404 for the underscore.js?? Is this a grunt configuration issue or anything else?</p>