Reputation: 1449
This is my folder structure on the server:
How do you start the angular JS app inside the AngularJSAPP folder from index in the current folder?
<a href="./AngularJSApp/" target="_blank">Angular JS app</a>
how should the link look like? When I tried something like:
<a href="./AngularJSApp/index.html" target="_blank">Angular JS app</a>
the server returned code 404. it cant find the files.
<script src="node_modules/angular/angular.js"></script>
<script src="node_modules/angular-route/angular-route.js"></script>
<script src="node_modules/jquery/dist/jquery.js"></script>
<script src="node_modules/bootstrap/dist/js/bootstrap.js"></script>
<script src="app.module.js"></script>
<script src="app.routes.js"></script>
<script src="services/data.service.js"></script>
<script src="services/user.service.js"></script>
<script src="services/localstorage.service.js"></script>
<script src="services/data.salescharts.service.js"></script>
<script src="directives/directives.js"></script>
<script src="js/admincontroller.js"></script>
<script src="js/carcontroller.js"></script>
<script src="js/logincontroller.js"></script>
<script src="js/saleschartcontroller.js"></script>
<script src="js/registercontoller.js"></script>
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
Upvotes: 2
Views: 46
Reputation: 7455
According to information from comments.
You need to add ../
before every path.
Without that browser is trying to find files in the same directory with index.html.
<script src="../node_modules/angular/angular.js"></script>
<script src="../node_modules/angular-route/angular-route.js"></script>
<script src="../node_modules/jquery/dist/jquery.js"></script>
......
Upvotes: 1