Hello! In attempt to upgrade to beta 14 I am having a few issues with the nav bar. I read the docs on the navigation and view changes, and have changed all ion-view titles to view-titles, all left/right nav buttons to primary/secondary, and all animation attributes to nav-transition=“ios”
After clearing cache and running the new cli lab, the nav bar for every view is blank with no buttons or title.
are there any other breaking changes, or anything not documented that may be causing this? Just wanted to check before digging into this or going down the wrong path.
@bjedrzejak try wrapping the ion-nav-buttons inside a ion-nav-bar directive. The example at http://ionicframework.com/docs/api/directive/ionNavTitle/ didnt work for me, but when I added the ion-nav-bar inside the ion-view and then nested the nav buttons, it appeared again.
I’m not sure if this is the best practice or a hack though…
Hi there!
I just figured that i had to run gulp watch again. Even if you haven’t made any title/header changes in sass just run gulp watch. If you are using .css you could try to refresh those files.
Sorry I ended up rolling back to Beta 13 due to the choppy animations (might be something pertaining to my app, not blaming ionic until i put a code oen up ) but for now i’m going back to beta 13
@mhartington yes I’m seeing a flicker on every page transition with a white background on the sliding view, even the header/nav bar turned white while sliding. I was using nav-direction=“forward” on a button or anchor with a ui-sref. Also saw a black background and flicker a few times. I was showing someone the app I’m building so I temporarily rolled back, but I’ll take a look at it in the near future and create a code pen if i cant figure it out.
Thats what im thinking @mhartington although I couldn’t determine what on first glance. It may have something to do with the HTML elements as well, can nav-direction elements be placed on any nav related element? (anchor/button/nav bar etc.) Or only specific ones? I couldn’t exactly tell from the docs. I’ll try to get a code pen up this week.
I see it again . Do I have to have all of my HTML in one single page for code pen? Or is there a way to add multiple templates I can reference from the stateProvider? Or do I need to add templates in scripts?
ok i figured what i was doing to get choppy animations… i had multiple nav-bars throughout the app rather than just one on the index with child states inheriting. So basically I needed to just add a blank nav-bar to the index.
I created a codePen however now I have some questions regarding the animations and nav flow. I’ll create a separate thread thanks @mhartington !