I use ionic 3 with lazy loading (#IonicPage).
after F5(or browser refresh button) pressed, navigation stack will be reseted and back button is not visible.
Please help me.
Thnx!
Related
I am trying to be disabled when another button gets clicked, currently it does disable the button but I am stuck on when refreshing page the button gets enabled again. Any ideas on how to keep the button disabled even on refresh?
I am building an app(Learning) and on first use the app it show authentication page with login and signup button if user click any one button and fill the fields it will be navigate to homePage.
Navigation :
Authentication Page=>login=>main page
Now the problem is I don't want users to get back to login page if they press back button on home page. Instead I want to exit the app.
How can I do it?
When you navigate from login to main page use Navigator method .pushReplacement() instead of .push() and that will replace the login page on Navigator stack. Which means that the main page will be the only one on the stack. Pressing the back button or calling method .pop(), in that case, will close the application.
I'm writing a PWA app. What I want is back and refresh button on title bar. But I got nothing.
The display property in the manifest file must be either "fullscreen" or "standalone". In both cases, the back and refresh buttons won't be shown.
Set the display property as "minimal-ui" or "browser", the back and refresh button will be shown.
Note: Clear cache/Uninstall the PWA for changes to take place
In my page i use this:
this.navCtrl.push(HomePage);
Automatically generated back button
but a back button will automatically be added to the pushed view, how to use default bar?
If you do not want the Back button to be shown as an option you could simply hide it on the page in which you are navigating to.
<ion-navbar hideBackButton="true"></ion-navbar>
More info on Ionic NavBar here.
If you don't want to have the back button then you can set it as a root page using "setRoot()" instead of push() like this,
this.navCtrl.setRoot(HomePage);
just try this it work great for me it will be automatically deactivate back button and show Menu toggle
this.childNavCtrl.setRoot(HomePage);
I want to disable drag sidemenu of Ionic on only login page so I use this line of code in login controller.
$ionicSideMenuDelegate.canDragContent(false);
But it disables drag for all pages in my app. How can I fix this?