Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • 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 github.com/angular/angular/issues/11268 Commented Apr 6, 2017 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). Commented Apr 10, 2018 at 22:39