I am creating a site with AngularJS and everything works fine locally. Everything but this one thing works fine in the deployed version.
我正在使用AngularJS创建一个站点,一切都在本地工作正常。除了这一件事之外的一切都在部署版本中运行良好。
At one of the states 'orderinfo', 'index.html' is loaded in the ui-view instead of the partial in the routes.
在其中一个州'orderinfo','index.html'被加载到ui-view而不是路由中的partial。
Do any of you have any idea what might be going on?
你们中的任何人都知道可能会发生什么吗?
// ...
state( 'order', {
url: '/results/order/:id',
templateUrl: 'views/order.html',
controller: 'OrderController as order'
} )
.state( 'orderinfo', {
url: '/results/order/edit/:id/:secret',
templateUrl: 'views/orderinfo.html',
controller: 'OrderInfoController as orderInfo'
} )
.state( 'orderconfirm', {
url: '/results/order/confirm/:id/:secret',
templateUrl: 'views/orderconfirm.html',
controller: 'OrderConfirmController as orderconfirm'
} )
// ...
1 个解决方案
#1
0
The filename was incorrect. It worked on the local development server because it was case insensitive, but not on the deployment server.
文件名不正确。它在本地开发服务器上工作,因为它不区分大小写,但不在部署服务器上。
#1
0
The filename was incorrect. It worked on the local development server because it was case insensitive, but not on the deployment server.
文件名不正确。它在本地开发服务器上工作,因为它不区分大小写,但不在部署服务器上。