1

It would be ideal to have some service like ActivatedRoute snapshot to find previous route?

Any idea?

Vladimir Djukic
  • 925
  • 2
  • 9
  • 28
  • 1
    Unfortunately, there is no such Service but there are many workarounds to get the previous route or URL, please take a look at this https://github.com/angular/angular/issues/11268 – Ismail RBOUH Apr 06 '17 at 15:53
  • This question isn't at all a duplicate of the link provided. The link is for detecting an event (routing change) whereas this question is looking for a property (previous navigation location). – Greg Apr 10 '18 at 22:39

0 Answers0