[英]Routing issues in my AngularJs application
I have given the route as '/second' to navigate into my second.html
page, but when I'm clicking on the button, it's not navigating into the other page.我已将路线指定为“/second”以导航到我的
second.html
页面,但是当我单击按钮时,它并没有导航到其他页面。 I'm having this issue because of the URL, I think.我想我遇到这个问题是因为 URL。
I want the URL to be http://127.0.0.1:5500/index.html#/second
when I click on the button, but it's displaying the URL something like this: http://127.0.0.1:5500/index.html#!/#%2Fsecond
. I want the URL to be
http://127.0.0.1:5500/index.html#/second
when I click on the button, but it's displaying the URL something like this: http://127.0.0.1:5500/index.html#!/#%2Fsecond
。 What could be the cause of the URL becoming something like this? URL 变成这样的原因可能是什么?
Try removing the /
and make it only second
.尝试删除
/
并使其仅成为second
。 update the question with your router code for further assit.使用您的路由器代码更新问题以获得进一步帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.