從Tomcat /
目錄移動我的Web項目之後到子文件夾/WebApp
我得到一個錯誤GET http://localhost:8080/partials/view-worker-apps-used.html 404 (Not Found)
Web服務器AngularJs GET找不到404
這是我的項目結構:
- WebApp
- partials
- view-worker-details.html
- view-worker-apps-used.html
- js
- controlers.js
- services.js
- index.html
- 首先我負載
http://localhost:8080/WebApp/#/screen2
這是view-worker-details.html被注入到index.html中$routeProvider
- 在載入的view-worker-details.html屏幕有
<div ng-include="/partials/view-worker-apps-used.html"></div>
我寧願不把Web應用程序前綴到的路徑NG-包括。 我該如何解決這個問題?
將' '添加到index.html的「
」部分。 – Stewie添加
userbb