I am creating a single page application with several views served by a router.
Most of the information I read says to enter location:Location
as a service, and then use (click)='location.back'
to return to viewing.
This does not work for me, as if you start from a certain view and press "back", you end the exit from the application and go to the previous site. I also often use page reloads when using this navigation method. Is there a history API or some other way to handle navigation in an ng2 application?
source share