Ionic link without back button - ionic-framework

in my Ionic app - how can I add links to other states that would not add an entry into the navigation stack.
I need to add links to that would move user to another state/view. And in some cases (not always) I don't want the 'back' button to appear in the nav, allowing user to return to the previous page. Is this achievable?
Thanks in advance.

For this you can use $ionicHistory.
$ionicHistory.nextViewOptions({
disableBack: true
});

Related

Ionic - How to create a new modal with data, from another modal?

I have a project I'm working on that requires multiple modal views. I'll try to be as clear as possible in explaining this.
Basically, a user clicks a button and a modal opens. The user can select a user, or can click a button that says manage users - which will take the user to a different modal view, with options to edit the users.
I am new to ionic, but can anyone explain how I can go about doing this?

How to disable the back button on a pushed page?

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);

Ionic either doesn't show back button or page doesn't load at all

I am trying to create a new page from an existing page with a back button. I have recreated the issue here in a plunkr. In the trip analytics option When I click the first card i.e. Enter Home address. I want the todayDetail .html page to come up with a back button. I have already tried two approaches
First approach The ng-click approach. In which I give $state.go(statename) to give that page. But then I wouldn't get a back button as the navigation stack is changed.
Second approach - If I keep the navigation stack i.e. keep the state name as initial.trips.today.todayDetail. The page doesn't load at all.
What is the issue? How should I go about it?

How to set facebook page order

I have a facebook page where I want to add an app as a page. In the old version you could drag'n'drop the tab order, but now I can't find any way to change the order of the pages.
This is my test page: http://www.facebook.com/pages/edit/?id=192515850771209&sk=featured#!/pages/Mtest/192515850771209
The page with the red "M" is my app that I want to be able to set the order where it appears in the list.
Thanks,
Rob
Just under the list is an edit button - click on it - drag and drop in the order you desire.
Remove all the apps and add them back in the order you want them to appear.

Coda Slider Tab Navigation

I am using Coda-Slider for my website and I want to know if there is a way to change the content of each tab. For example, the user navigates onto tab2 where I placed a link to redirect the user to another page. Is there a way NOT to navigate away from the page nor the tab but instead load the link inside the tab? I was thinking it would look something like a modal box that would stay inside the tab instead of popping up.
see 19. Coda-Slider Sliding Tabs or you might want to try 35. JQuery IDTabs if you want the effect to be non-intrusive