how to disable previous page when clicking on browser back button

25 views
Skip to first unread message

Nandakumar R

unread,
Apr 24, 2015, 6:29:02 AM4/24/15
to ang...@googlegroups.com
HI,
      how to disable previous page when clicking on browser back button?

Daniel Lidström

unread,
Apr 24, 2015, 6:43:40 AM4/24/15
to ang...@googlegroups.com
You can cancel navigation. There's an event you can listen to. A google search should get you on the right track.

Leandroh

unread,
Apr 24, 2015, 9:26:29 AM4/24/15
to ang...@googlegroups.com
You can try: $window.location.replace("http://www.google.com")

--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages