Closed chrisvire closed 2 weeks ago
On parent component, add on:backNavigation={handler} to NavBar component. In handler, call event.preventDefault() to prevent the default behavior of going back to the main page.
on:backNavigation={handler}
NavBar
event.preventDefault()
On parent component, add
on:backNavigation={handler}
toNavBar
component. In handler, callevent.preventDefault()
to prevent the default behavior of going back to the main page.