开发了这样一个app,包含两个页面。
部分代码
Application.config(['$routeProvider', function($routeProvider) {
initOtherRoute($routeProvider);
$routeProvider.otherwise({
redirectTo: '/file_send_log'
});
}]);
pages: [
{
name: '文件发送记录',
url: '/file_send_log',
tpl: 'file_send_log.html',
controller: 'fileSendLogController'
},
{
name: '文件接收记录',
url: '/file_receive_log',
tpl: 'file_receive_log.html',
controller: 'fileReceiveLogController'
},
]
把代码放在nginx里,在Chrome里调试的时候,直接开
http://192.168.1.100/filesharelogapp/app.html#/file_receive_log
http://192.168.1.100/filesharelogapp/app.html#/file_send_log
就能直接打开不同的页面。
如果直接开http://192.168.1.100/filesharelogapp/app.html
就是默认的file_receive_log
,url也会跟着自动跳转
但是到与客户端集成的时候,发现上面两个带参数都都报找不到页面,不带参数的可以直接开默认页。
对客户端开发不熟,求指点。
AngularJS 1.4.7
什么叫“发现上面两个带参数都都报找不到页面,不带参数的可以直接开默认页”
有错误么?有错的话,贴错误啊。
还有“与客户端集成”又是个什么鬼?你们要把代码打包到
electron
之类的壳里么?