4

I've looked all over StackOverflow and Google and haven't been able to find anything that's really working out for me. I need to disable the back button in my Angular app when a user reaches a certain page in the flow. How might I accomplish this?

user1807782
  • 451
  • 1
  • 4
  • 17
  • 1
    @mberacochea Angular uses push state, so it's a tad different. And I'm not trying to modify the URL. – user1807782 Jul 03 '18 at 15:11
  • 1
    This approach using a listener + canDeactivate guard may help: https://stackoverflow.com/a/49402713/5499369 – Mark Leong Sep 12 '18 at 04:02
  • @MarkLeong canDeactivate guard doesn't work since it breaks router history https://github.com/angular/angular/issues/13586 – evanjmg Apr 09 '21 at 12:16

0 Answers0