I am using ionic framework since one year (1.0.11 beta). I recently upgraded to 1.1.0. I am seeing different issues (some was due to improvements in ionic). I guess my below problem is one like that.Can some one help me with this?
I am using ion-nav-view inside ion-view like below.This works fine till beta 11. Once I upgraded to ionic 1.1.0, I am unable to load ion-nav-view properly. I am seeing different UI issues like nav bar is not loading icons etc.
Can some one tell me how to load a different html view inside instead of using ? (or) are there any options?
I think my problem is little different, i am using ion-nav-view inside ion-view. I guess with latest ionic framework, this wont work. I like to know, how to include different view (*.html) inside ion-slide and also how to update ion-nav-bar when there is change in slide. can some one help me with this?
So there’s a lot going on here and a lot of incorrect information.
Ionic uses UI-Router for it’s routing.
So ion-nav-view is like ui-view, but with some extra stuff on top.
@mrvamsidhar Ion-nav-view isn’t meant to be used like that. It’s purpose to create full screen containers that can render views and animate them in and out.
What you’re trying to do isn’t supported by ionic using ion-nav-views.
There are other ways you could do this kind of UI, but using ion-nav-view in side of your slides is not one of them.
@mhartington, thanks for your reply. At least now I know i am in wrong direction.
You mentioned there are other ways to do. Can you explain little more on this?
All I need to do is, I need to load different view (*.html) for each ion-slide. I also need to update header bar (like showing different icons based on the selected slide) based on current ion-slide. Header bar Icons are not updated on slide change. I tried ng-include, ng-view but didn’t worked. So basically I am having two problems
FYI: there are three views - view1.html, view2.html and view3.html. I am loading all these views in main.html.The problem here is on slide change my header bar is not getting updated with the icons related to current slide.
@mhartington Would like to know what the extra stuff is. It took me about a day to try to get ion-nav-view working before I decided to give up and use the actual UI Router library instead. Would also like to know if some of the added features have compatibility issues.