我的应用在本地加载文件,一切正常。但在部署到heroku后,我得到了404(未找到)。任何其他文件都被加载并且工作正常,所以我不明白为什么这些文件是唯一没有加载的文件。
我的代码实际上是:
(function(){
'use strict';
angular.module('app.core')
.config(function($stateProvider,$urlRouterProvider){
$stateProvider.state('allArtikel',{
url:'/allArtikel',
templateUrl:'../app/artikel/html/allArtikel.html',
controller:'allArtikelCtrl',
parent:'/display'
});
});
})();
(function(){
'use strict';
angular.module('app.core')
.controller('allArtikelCtrl',function($scope,$http){
});
})();
<script src="app/artikel/js/allArtikel.controller.js"></script>
<script src="app/artikel/js/artikel.routing.js"></script>