I recently encountered a dilemma with my app where users navigate to a dead-end page without any way to return. Picture clicking on a program in a TV guide and getting stuck on that program's details page, not being able to go back to the main guide.
To address this issue, I considered using an <a>
tag as a button to take the user back to the TV guide.
Now, I'm torn between two options:
- Using
href="/guide"
or
- Implementing
(click)=goBack()
where the function triggers alocation.back()
action