title: Failed to instantiate module dashboard due to: Error: [$injector:nomod] http://errors.angularjs.org/1.4.9/$injector/nomod?p0=dash
body: <p>I'm trying to learn angularjs and i keep getting this error,and this is my code:</p>
  
  <p>app.js</p>
  
  <pre><code>var app = angular.module('DashboardApp',
      [
          'dashboardService'
      ]);
  </code></pre>
  
  <p>service.js</p>
  
  <pre><code>var dashboardServiceModule = angular.module('dashboardService', []);
  dashboardServiceModule.factory('Dashboard', function ($http) {
  return {
      get_site: function () {
  
          return $http({
              method: 'GET',
              url: 'www.google.com',
              headers: {
                  'X-CSRF-Token': $('meta[name="csrf-token"]').attr('content'),
                  'Content-Type': 'application/x-www-form-urlencoded'
              }
          });
      }
  }
  </code></pre>
  
  <p>});</p>
  
  <p>index.html</p>
  
  <pre><code>&lt;div class="row" ng-controller="Dashboard"&gt;
      &lt;input type="button" ng-model="template" value="www.google.com" ng-click="test()"&gt;
      &lt;remote-content&gt;&lt;/remote-content&gt;
  &lt;/div&gt;
  &lt;script&gt;
      app.controller('dashboardCtrl', function (DashboardApp) {
          console.log("a");
      });
      angular.module('DashboardApp').directive("remoteContent", ['Dashboard', function (Dashboard) {
          return {
              restrict: "E",
              template: "&lt;p&gt;test&lt;/p&gt;",
              link: function (scope, elem, attrs) {
                  console.log("kl;sd");
              }
          }
      }]);
  &lt;/script&gt;
  </code></pre>
  
  <p>Any help would be greatly appreciated, thanks!</p>