我有一个角js应用程序,我试图把它作为Cordova移动应用程序来包装。如何使用角js在科尔多瓦插入#引用
该网址在浏览器上正常工作,但在移动浏览器上重定向有一些问题。当我试图打印我重定向到URL的东西URL的绝对位置像
file:///Users/mac/Library/Developer/CoreSimulator/Devices/69F93249-284F-4F04-82CA-14B111CCA50F/data/Containers/Bundle/Application/B21EB426-7066-4425-82F0-6F73736D880C/ClientManagement.app/www/index.html#/dashboard
有一个/
从URL中缺少当索引页面被调用。
我怎么能追加/
的index.html加载后
编辑:当应用程序是第一次加载它表明以下文件加载:
file:///Users/mac/Library/Developer/CoreSimulator/Devices/69F93249-284F-4F04-82CA-14B111CCA50F/data/Containers/Bundle/Application/B21EB426-7066-4425-82F0-6F73736D880C/ClientManagement.app/www/index.html#/
但我想装载是只是
file:///Users/mac/Library/Developer/CoreSimulator/Devices/69F93249-284F-4F04-82CA-14B111CCA50F/data/Containers/Bundle/Application/B21EB426-7066-4425-82F0-6F73736D880C/ClientManagement.app/www/index.html
在config.xml中我打电话
<content src="index.html" />
这是严格意义上的角度问题。 Cordova/Phonegap不关心'.html#'后面的路径 – JesseMonroy650
这是什么问题?你想彻底删除#?这个'index.html#/'对我来说似乎没有错。你有什么问题? – koox00