question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tabs remain at top of app after adding property tabsPlacement: 'bottom' to app.ts

See original GitHub issue

Short description of the problem:

According to the V2 Config there are three ways to place the tabs at the bottom of your app:

  1. Add the tabsPlacement property to ionic bootstrap in app.ts
  2. Add the tabsPlacement property to ion-tabs in tabs.html
  3. 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:

image

What behavior are you expecting?

I want my ionic tabs to be placed at the bottom of the screen.

Steps to reproduce:

  1. Create a new ionic tabs project: ionic start TabsTopBottom tabs --v2
  2. Modify app.ts to include the tabsPlacement: “bottom” property
  3. 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”.

image

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)

image

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
huntmj01commented, Jul 18, 2016

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.

github

1reaction
brandyscarneycommented, Jul 18, 2016

Yes, as @Manduro said, the beta 10 config option for this is tabbarPlacement. Right now the API docs are using the nightly version which shows our latest changes that haven’t been released. If you select the dropdown in the top left and change it to beta 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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found