I am new to AngularJS, but with the little I have learn't and worked it, I aprreciate it has a fantastic client side framework, However I dont like it when I have to include all the files I need in my my index Page for instance
<script src="/js/lib/angular/ng-core/angular.js"></script>
<script src="/js/lib/angular/ng-module/angular-route.js"></script>
<script src="/js/lib/angular/controller/main.js"></script>
<script src="/js/lib/angular/controller/home.js"></script>
<script src="/js/lib/angular/controller/insuranceType.js"></script>
<script src="/js/lib/angular/controller/insuranceCategory.js"></script>
<script src="/js/lib/angular/config/router.js"></script>
A user can just check source and download my project like this,
how can load only a javascript and in that I can bootstrap all my required angular javascript files? An idea is what I put below
My Index.html Page
<!DOCTYPE html>
<html>
<head>
...
<script src="bootstrapmyfiles.js"></script>
...
</head>
</html>
<body>
</body>
My bootstrapmyfiles.js File
//pseudocode here
require("angular.js")
//require other javascript files too
How can I achieve this please, Is there a way? seen this question but not satisfactory