Know previous route Angular 7 [When using location.back()]

Viewed 121

I'm working on an Angular 7 app.

I use location.back() in a page/component A to go back to a previous page/component B.

What I want to know, is how to check in the component B logic that I'm coming from component A and not from another component, to use a specific behaviour in this case.

Thanks in advance for your help.

0 Answers
Related