I'm building a mobile app using Ionic (which uses the Angular router). The app has a tab bar along the bottom, which is fairly standard.
Let's say my app structure looks something like this:
- Home - /tabs/home
- List of events - /tabs/events/list
- View event - /tabs/events/view
- Create event - /tabs/events/create
The event list contains links to the view-event screen which passes the clicked event in. It also has a link to the create-event screen.
My view-event and create-event pages have the following in the header, to take you back to the view-events screen.
<ion-header>
<ion-toolbar>
<ion-buttons slot="start">
<ion-back-button routerLink="/tabs/events/list" routerDirection="back"></ion-back-button>
</ion-buttons>
On the homepage, I'd like to put a link to the Create Event page. If I add in <ion-button routerLink="/tabs/events/create">Create Event</ion-button>
it changes the tab to the Events tab and shows me that page, but there's no Back button to return to the main Events List screen.
I've tried changing <ion-back-button
to just <ion-button
without any joy either.