簡體   English   中英

我的 AngularJs 應用程序中的路由問題

[英]Routing issues in my AngularJs application

我已將路線指定為“/second”以導航到我的second.html頁面,但是當我單擊按鈕時,它並沒有導航到其他頁面。 我想我遇到這個問題是因為 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 URL 變成這樣的原因可能是什么?

嘗試刪除/並使其僅成為second 使用您的路由器代碼更新問題以獲得進一步幫助。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM