简体   繁体   中英

Clear the history when user logout form Application In AngularJS

I am very new to AngularJS, I am working on web based project using AngularJS.

When the user logs out of the application or when user clicks the browser back button application is going to previous page.

Can anyone show me how to restrict the back button after user logout?

I tried

$location.replace();

And I tried

Window.history.forward();

But I am not able to work it out. Can anyone please help me to achieve this?

简而言之:您无法控制浏览器的历史记录。

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