title: Load javascript files before angular.module
body: <p>I want to create a sort of js library. The user should just include ONE js file and he can use all my functions.</p>
  
  <p>I'm using angularjs.</p>
  
  <p>In my angular.module, I have several "Injectors" (correct me if it's not the name) define as follow :</p>
  
  <pre><code>var app = angular.module('WDX', ['ui.bootstrap', 'ngRoute', 'ng-currency', 'ngSanitize']);
  </code></pre>
  
  <p>To make it working, I need to include some JS files (like "ng-currency.js") before the angular js file. BUT, I want the user has just to include this angularjs file (or just ONE other, no more)...</p>
  
  <p>I tried to create a new JS file to load everything before my angularjs file, like that :</p>
  
  <pre><code>$.getScript("https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js", function () { });
  $.getScript("/Scripts/ng-currency.js", function () { });
  $.getScript("/Scripts/kendo.all.min.js", function () { });
  $.getScript("/Scripts/placeholder.js", function () { });
  $.getScript("/Scripts/angular-sanitize.js", function () { });
  </code></pre>
  
  <p>But I still have this error :</p>
  
  <blockquote>
    <p>angular.js:38 Uncaught Error: [$injector:modulerr]
    <a href="http://errors.angularjs.org/1.3.12/" rel="nofollow">http://errors.angularjs.org/1.3.12/</a>$injector/modulerr?p0=test&amp;p1=Error%3A%20…0d%20(http%3A%2F%2Flocalhost%3A46223%2FScripts%2Fangular.min.js%3A17%3A381)</p>
  </blockquote>
  
  <p>If I include all scripts in the html, before the angularjs file, it works, but I don't want that :/</p>
  
  <p>Any solution ?</p>
  
  <p>Thanks for you answers !!</p>