-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Config.set is not working with tabsHideOnSubPages #8970
Comments
@royipressburger It is not a good idea to change configuration values at runtime. what's your use case? |
@manucorporat Hi, I want to be able to show the tabs bar on some pages that are being pushed to the nav stack. |
Hi again @manucorporat Is see the commit you referred too. lets assume that I have a tab page with 2 buttons, each one pushes a new page to the stack. |
@royipressburger ok... I see your use case. It can be done. But it is a tricky one from a API perspective. maybe something like: this.nav.push(Page, {
tabsHideOnSubPages: true
}); NOTE this will not work, it just an idea of how we could make it work... |
@manucorporat This thing can work, But this might cause a little confusion with the
With this I think it will be easier to extend all the config object like animation and maybe mode under specific page What do you think? EDIT: |
sure, it should be in the 3rd parameter. I just forgot the API :) |
@manucorporat The commit you referred too will give me the option to keep/hide the tabs per tab page? I mean if I got the default set to false and on one tab i change to true, every page that will be pushed from this tab will have the tabs? |
@manucorporat Any news on that? |
@royipressburger I am sorry for the inconvenience, but let's evaluate this once 2.0 final is released. It is a big internal change if we want to support your use case, and it is too late for new features or big changes. |
Thanks for the issue! This issue is being closed due to inactivity. 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. Thank you for using Ionic! |
Short description of the problem:
When initialising the application with
tabsHideOnSubPages: true
If trying to change the value dynamically with
config.set
there is no effect.Steps to reproduce:
this.config.set('tabsHideOnSubPages', false)
Which Ionic Version? 1.x or 2.x
2.rc1
Plunker that shows an example of your issue
http://plnkr.co/edit/LLnXgkRnxLeY1PItgual?p=preview
Run
ionic info
from terminal/cmd prompt: (paste output below)Cordova CLI: 6.3.1
Ionic Framework Version: 2.0.0-rc.1
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.1.0-beta.1
ios-deploy version: 1.9.0
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v6.7.0
Xcode version: Xcode 8.0 Build version 8A218a
The text was updated successfully, but these errors were encountered: