Tabs remain at top of app after adding property tabsPlacement: 'bottom' to app.ts
See original GitHub issueShort description of the problem:
According to the V2 Config there are three ways to place the tabs at the bottom of your app:
- Add the tabsPlacement property to ionic bootstrap in app.ts
- Add the tabsPlacement property to ion-tabs in tabs.html
- Add a query string http://localhost:8100/?ionicTabsPlacement=bottom
I have done all three and my tabs still remain at the top of my app:
What behavior are you expecting?
I want my ionic tabs to be placed at the bottom of the screen.
Steps to reproduce:
- Create a new ionic tabs project: ionic start TabsTopBottom tabs --v2
- Modify app.ts to include the tabsPlacement: “bottom” property
- Run the app.
app.ts:
import {Component} from '@angular/core';
import {App,Platform, ionicBootstrap} from 'ionic-angular';
import {StatusBar} from 'ionic-native';
import {TabsPage} from './pages/tabs/tabs';
@Component({
template: '<ion-nav [root]="rootPage"></ion-nav>',
})
export class MyApp {
private rootPage: any;
constructor(private platform: Platform) {
this.rootPage = TabsPage;
platform.ready().then(() => {
// Okay, so the platform is ready and our plugins are available.
// Here you can do any higher level native things you might need.
StatusBar.styleDefault();
});
}
}
ionicBootstrap(MyApp, [], {
tabsPlacement: "bottom"
});
tabs.html:
<ion-tabs tabsPlacement="bottom">
<ion-tab [root]="tab1Root" tabTitle="Home" tabIcon="home"></ion-tab>
<ion-tab [root]="tab2Root" tabTitle="About" tabIcon="information-circle"></ion-tab>
<ion-tab [root]="tab3Root" tabTitle="Contact" tabIcon="contacts"></ion-tab>
</ion-tabs>
Other information: It appears to me that the tabplacement and tabbarplacement never change to “bottom”.
Which Ionic Version?
2.0.0-beta.10
Plunker that shows an example of your issue
http://embed.plnkr.co/jCqyxvqJtHV9hPYxsolw/
Run ionic info
from terminal/cmd prompt: (paste output below)
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
rename tab config options to make more sense · Issue #7143 ...
The config options for tabs should be renamed to be more clear: ... Tabs remain at top of app after adding property tabsPlacement:...
Read more >How to place ionic tabs at the bottom of the screen?
To place the ionicFramework tabs at the bottom of the screen for android devices just open your app.js file, and under angular.module add...
Read more >Ionic 2 - side menu and tabs | DiscoverSDK Blog
Understanding side menu and tabs in Ionic 2 - DiscoverSDK Blog. ... Make sure to add this page to “app.module.ts” and “app.component.ts”.
Read more >Organize your tabs with Tab Groups in Safari on iPhone
In the Safari app , you can create Tab Groups to keep tabs organized and make them easier to find ... The pinned...
Read more >Ion-Tabs: Tab-Based Component for App Top-Level Navigation
Tabs are top-level components to implement tab-based navigation. ... When used with Angular's router the tab property of the ion-tab-button should be a ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thank You Brandy! Once the next release is released I will know to update my code. I didn’t realize you could select which version of ionic to view in the documentation so thank you for that information also.
Yes, as @Manduro said, the
beta 10
config option for this istabbarPlacement
. Right now the API docs are using thenightly
version which shows our latest changes that haven’t been released. If you select the dropdown in the top left and change it tobeta 10
you will see all of the documentation for that release. We have an open issue to change this to the latest stable release: https://github.com/driftyco/ionic-site/issues/692