星空网 > 软件开发 > Java

Part 31 AngularJS page refresh problem

What is the issue : When you navigate to http://localhost/students, you will see list of students as shown below 

Part 31 AngularJS page refresh problem 

Click on any student name. For example when you click on Mark, you will see mark details and the URL in the address bar is http://localhost/students/1


Part 31 AngularJS page refresh problem 

At this point if you refresh the page by pressing CTRL + F5 or CTRL + R, the student details disappear and the page will be renedered as shown below. 

Part 31 AngularJS page refresh problem 

To see the errors, launch the Browser Developer Tools by pressing F12

Part 31 AngularJS page refresh problem 

To fix this issue all you have to do is place the <base href="http://www.cnblogs.com//"> element just below the<title> element in the head section of index.html page. 




原标题:Part 31 AngularJS page refresh problem

关键词:JS

JS
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

新泽西海外仓:https://www.goluckyvip.com/tag/94419.html
PB/FBW:https://www.goluckyvip.com/tag/9442.html
海外仓 选品:https://www.goluckyvip.com/tag/94421.html
孟加拉海外仓:https://www.goluckyvip.com/tag/94423.html
云途 海外仓:https://www.goluckyvip.com/tag/94424.html
转运海外转运仓:https://www.goluckyvip.com/tag/94425.html
2024年,前景最被看好的十大行业:https://www.kjdsnews.com/a/1836621.html
17点聊电商:丽人丽妆2023年扭亏为盈 玉容初、美壹堂等自有品牌增速超40% :https://www.kjdsnews.com/a/1836622.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流