[英]how to back/forward user 's history by clicking the browser back/forward button in angularjs
I have a angularjs page, it contains two part, the first part on the left is a navigation list with a list of news categories, the central content is the news list. 我有一个angularjs页面,它包含两部分,左侧的第一部分是带有新闻类别列表的导航列表,主要内容是新闻列表。 so when people click one news category on the left, the central content will load the news list in ajax. 因此,当人们单击左侧的一个新闻类别时,中心内容将在ajax中加载新闻列表。
what I want to do now is, when the user click the back or forward button on the browser, the browser could back / forward user to the last navigation link he clicked. 我现在要做的是,当用户单击浏览器上的“后退”或“前进”按钮时,浏览器可以将用户后退/前进到他单击的最后一个导航链接。
how can I disable the browser back/ forward button 's default behavior and implement this in angular.js 如何禁用浏览器后退/前进按钮的默认行为,并在angular.js中实现
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.