You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: using ion-tab-bar without ion-tabs or ion-router-outlet #30361
I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
v8.x
Current Behavior
[Vue warn]: injection "tabBarData" not found.
Vue warn]: Unhandled error during execution of native event handler
at <IonTabButton tab="3" >
at <IonTabBar color="light" >
at <Example>
at <IonContent class="ion-padding" >
at <IonApp>
at <App>
Expected Behavior
to work without the need of ion-tabs or router outlet. The navigation will be done by method.
changed the title [-]bug: using ion-tab-bar without ion-tabs or ion-router-outlet[/-][+]feat: using ion-tab-bar without ion-tabs or ion-router-outlet[/+]on Apr 24, 2025
Thanks for reporting the issue! This isn't a problem anymore in V9, I created a PR for regression testing it just to make sure it doesn't become an issue again, but this was sort of fixed by accident. The follow up animation request should be a feat request outside of the scope of this bug report. You'll need to make a new issue for that
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Activity
jacobg commentedon Apr 21, 2025
Try the ion-segment-view content. It's less opinionated about how you use it.
z0lo13 commentedon Apr 21, 2025
@jacobg not sure how that could help, we only need the tab bar buttons. And routing is handled via router in method.
[-]bug: using ion-tab-bar without ion-tabs or ion-router-outlet[/-][+]feat: using ion-tab-bar without ion-tabs or ion-router-outlet[/+]brandyscarney commentedon Apr 24, 2025
Thank you for the issue! I have marked this as a feature request as
ion-tab-barhas always required anion-tabscomponent.z0lo13 commentedon May 1, 2025
@brandyscarney it would also be great if the animation is present when navigating between tabs.
ShaneK commentedon Oct 16, 2026
Thanks for reporting the issue! This isn't a problem anymore in V9, I created a PR for regression testing it just to make sure it doesn't become an issue again, but this was sort of fixed by accident. The follow up animation request should be a feat request outside of the scope of this bug report. You'll need to make a new issue for that
test(vue): cover tab bar used without tabs (ionic-team#31589)
ionitron-bot commentedon Nov 18, 2026
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.