bug: No view transitions when going to/from tabs
Type: bug
Platform: all
Codepen http://codepen.io/mhartington/pen/zxdGKd
If you navigate to and from tabs, there are no view transitions. Also, the back button will not show either.
I think this Codepen describes the issue a bit better: http://codepen.io/squrler/pen/xbLbgV
I'm seeing the same issue. My issue is the same as the exmaple in @CoenWarmer codepen. Specifically the example of "non nested views".
Off the top of my head I would think it has something to do with navigating to an "abstract" state since you are technically going to one of its children (aka the first tab).
An abstract state can have child states but can not get activated itself. An 'abstract' state is simply a state that can't be transitioned to. It is activated implicitly when one of its descendants are activated. -- Ui-Router Documentation https://github.com/angular-ui/ui-router/wiki/Nested-States-%26-Nested-Views
This used to work in all Ionic versions before beta 14, so in a way it's actually a regression which makes updating our apps especially difficult.
Funny, just realized I noted this over a year ago: https://github.com/driftyco/ionic/issues/437
An abstract state isn't a view, but a container of views. Let's say you had 3 tabs, and you go to tab 1 page 1, then tab 1 page 2, then to tab 2 page 1. At tab 2 page 1 you should not have a back button because you switch histories to another tab. This is by design, and exactly how native apps works. If that back button did exist between tabs then it wouldn't know which "back" you mean. Should it go back a page in the same history? Or should it go back to another history?? Again, this is following native's design because there are multiple histories, not a linear one like a standard browser has.
As for the view transition, that too follow's native's default design pattern. However, I'm planning on making it easier to give it a transition if you want.
The back button not appearing is less of a problem, since there are a couple of different ways to influence that when you really need one.
I'm just really looking for animations between states that may or may not have tabs. If it's easier to only enable that when the state with tabs only uses non-abstract states, that's great. Basically how it used to work in beta 13 :)
Possible duplicate: https://github.com/driftyco/ionic/issues/3135
It would be so, so nice if we could get some traction on this..... It's the one thing that's keeping three of our apps to be upgraded to beta 14... Pretty please? :)
Adding the possibility to animate transitions between tabs would, indeed, be great. That, and the ability to swipe between tabs.
@beauby you misunderstand: this issue is to describe the behavior where state 1 does not contain tabs, and state 2 does contain tabs. If you navigate from state 1 to state 2, in beta 14 there is no transition animation. You immediately are dumped to state 2.
This issue is not about having an animation between tabs on one state. That is not something that native UI frameworks use as default and so not something I expect ionic to support out of the box.
@beauby , @adamdbradley here is a very simple codepen demonstrating what @CoenWarmer is talking about. Like @CoenWarmer , I understand that there is no transition animation between tabs makes sense. An abstract state and his childs should be seen as one. But if you transition from "STATE1"to another "STATE_WITH_TABS" ,it should have 'navigation' and in his tabs the back button should go back to "STATE1".
http://codepen.io/anon/pen/Qwzama When navigating from HOME to OTHER-PAGE animation and back-button appears, but when navigating from OTHER-PAGE to TABS the animation and back-button is lost.
Still an issue in the nightly... (rc1 >)
@adamdbradley I do not have a full native app dev experience. But from years' experience of using native app, it tells that going from state 'tabs.home' to state 'login' does give users a back button.
Just wonder if this bug is ignored due to some misunderstanding.
same issue as above...
@beauby , @adamdbradley here is a very simple codepen demonstrating what @CoenWarmer is talking about. Like @CoenWarmer , I understand that there is no transition animation between tabs makes sense. An abstract state and his childs should be seen as one. But if you transition from "STATE1"to another "STATE_WITH_TABS" ,it should have 'navigation' and in his tabs the back button should go back to "STATE1".
http://codepen.io/anon/pen/Qwzama When navigating from HOME to OTHER-PAGE animation and back-button appears, but when navigating from OTHER-PAGE to TABS the animation and back-button is lost.
I should add, the issue I'm referring to is the 'back-button is lost'
+1
back-button is lost
Yes, I've seen that I was really confused why is this happening.
Here is the example I used as a base in my project: http://codepen.io/gnomeontherun/pen/tbvdH?editors=101
- When I click on a tab - no back button.
- When I click on a link on the page - there is back button.
- When I click on a item in the side menu - no back button.
Short video: http://screencast.com/t/0gsoogJf
@sgentile that is exactly the same issue I'm facing right now!
+1
I'm having a very similar problem, but not sure if it's the same as others.
I have two main states: 1) Tabs 2) options
All I want to be able to do is navigate from the Tabs state to the options state WITH an animation, but for the life of me I cannot force one. I can manually add the back button to the options page, but again, I'm missing all of the animations.
I also do not want to implement a "Hamburger" menu, but I guess I will if I have to. I think that navigating away from a tabbed interface and being able to go back is completely acceptable for UX. However, I agree that it's a bit odd to navigate TO a tabbed interface and have a back button included.
+1
+1