Can you share some of your code? How are you opening and closing the modal? Modals slide on top of the current view, so opening it and closing it shouldn’t move you to another view.
I was going to send over the WWW directory so you can just, build and ionic serve and see the site but it was too big to email, don’t want to share with the world so do you have someplace I can send a 2.6mb zipped file?
Basically the Actors and Project tabs are live and it opens to the Actors tab.
Click on the “hamburger” on Actors to open the popdown (sorry said modal earlier) and then close it.
Then go to Projects and do the same…it routes back to the Actors page and never opens the Projects popdown which has different content.
This is an old archive since I’ve moved on to just building out the Actors tab but any insight would be great.
I know in the back of my head that I should be doing this all on one page anyhow but don’t have the Angular chops to manipulate things yet.
I’m SOOOO looking forward to seeing Ionic Creator, it’s perfect for what I do!
Thanks,
P.S. The latest version is up on http://ipadoracle.com/testbed the hamburger is live, as well as text expansion arrows, and the “+” sign on the Scenes to open a modal but the other tabs are dead till I finish with Actors.
Basically this is the tab-actor.html code seg for the popdown, then I did the same for tab-projects.html changing the ActorAddModalCtrl to ProjectAddModalCtrl.
The issue I see is that the popdown isn’t really in the controller just changing the display: open to none and block.
Maybe since I have ng-controller=“ActorAddModalCtrl” in the main div it’s taking over every time when the page loads? If that’s the case I’m confused how to do unique popdowns for each tab page unless I have to have a separate controller or set of controllers for every page which seems wasteful.
I’m sure there is a way to set the $scope somehow but I haven’t quite got that far yet…(sigh)
If you have routes set up using the $stateProvider, you typically won’t need to use ng-controller since the controller can be set with the routes, ie, a snippet from my routes:
I think I’m going to punt on this and do it a different way as I think I’ve confused the modal and the popdown which is just a display:block/none.
Appreciate the help and look forward to the Ionic Creator!
Thanks again, Dan