简体   繁体   中英

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. so when people click one news category on the left, the central content will load the news list in 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM