I have an app of which one can navigate to a page in which there is no way forwards. Think of clicking a program in a TV guide to open a page with that program's details, obviously you will want to go back to the TV guide.
For a button to go backward to the TV guide, I have an <a>
tag.
Which would be the most advisable use case for this:
- Using
href="/guide"
or
- Using
(click)=goBack()
where the function callslocation.back()