And why you expect animations between the two tabs?
You have only an animation if you change the ion-nav-view content.
you have two ion-nav-view-tags -> on in one state you show the home-tab and in the other the profiletab -> na transition -> no animation.
Ähm the thing is, tabs are tabs and different (seperated) views/states are another thing… you are usind “tabs” correctly.
Tabs are there to handle multiple content on one page (without a page transition, because if you change a tab you only show content and hide the other one - on the same page).
Maybe you want something like a buttonbar and on a click on a button you change the state and the content of the same ion-view.
Well, he is probably ‘expecting’ it because it’s integral part of Material Design as specified by Google here (scroll down to see the videos) - and it’s also creeping into iOS. [I only have an iPhone4 with iOS7 here, but I just checked. Facebook and Twitter does not have it. But Tinder has it very clearly and the transition between apps (tab on ‘chat’ in the FB app and see how the FB Messanger ‘slides’ in.) is also clearly sliding in from the left…]
So clearly sliding transitions is a part of “native” look&feel - It’s pretty frustrating to try to find out if it is actually possible and how. I just spent the last 4 hrs googling and reading. So far I found here, on Stackoverflow, Github and elsewhere:
add animation="slide-left-right" to ion-nav-view
add animate='slide-left-right" to ion-nav-view
add class='slide-left-right" to ion-nav-view
the animation directive has been removed from Ionic
the animation directive should be in the <a> tag
(and half a dozen other confusing and contradicting information)
Now I am trying to wrap my head around your answer here - So what’s the difference between a “button” bar and a “tab” bar (see your other answer below) and what is the best practice to do this animations?
Could you elaborate a little more on this? Would be really very very much appreciated (I know your answer have been 1.5 yrs ago, but you are Mod here, so I hope you hang around)