Hey Ninjas, anyone can help me
I have an app which has side menu navigation.
Now in one view which shows entry details I have two tabs.
My problem is that as soon as I change tab the content of the other tab is gone.
My view code is like this:
<ion-view view-title="main view title">
<ion-tabs tabs-type="tabs-icon-top" class="tabs-striped tabs-color-active-positive">
<ion-content class="has-subheader padding text-center">
<ion-content class="has-subheader padding">
check this codepen
delete the -> $ionicConfigProvider.views.maxCache(0);
and small changes to the html
Thank you for your reply. But unfortunately I need to have this $ionicConfigProvider.views.maxCache(0); in place. Since I need for the app not to cache any of the views.
So any other way to turn of caching globaly and have the tabs working properly?
you can use to route the state of each tab you have full example in ionic docs
To be more precise with my issue the scenario is this:
- the App is with side menu navigation.
- In one of the views I have list of entries
- When an entry is clicked It will open a new view ( overview) which has two tabs: general and documents.
What I have:
I have a state which leads me from the list to the overview view : url: ‘/mySubmissions/:submissionId’,
In the template for this state I have the HTML with the tabs navigation .
Where I get stuck
I can’t seem to find a good way to toggle between tabs and in the same time transfer the :submissionId parameter .
I do not know how to set up the routes properly So this will scenario will work.
ANY HELP IS MORE THEN WELCOMED
Thank you @ItamarCohen
I checked your pen and accordingly modified my pen and my project now it all works as intended.
Here is my pen in case anyone else needs it: http://codepen.io/joconolimits/pen/pgyNYP