首页 > Web开发 > 详细

Part 31 AngularJS page refresh problem

时间:2016-05-15 07:03:43      阅读:253      评论:0      收藏:0      [点我收藏+]

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

技术分享 

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


技术分享 

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. 

技术分享 

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

技术分享 

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

Part 31 AngularJS page refresh problem

原文:http://www.cnblogs.com/gester/p/5494404.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!