In my Angular 2 (final) application, I need to get the router name from which I navigated from.
For Example: If I navigate from this url
'http://localhost:3000/#/home'
to 'http://localhost:3000/#/about-us'
(i.e) From home component to about us component.
Now, my problem is how to get the route name of component, in short how to get the route name from where I navigated from.
Thanks in advance.