So I am using Ionic 1 with AngularJS 1.5+ to allow use of components. For the most part this is working great but there is one issue I am having. I have two tabs at the moment, the first tab is loading everything fine but when I click on the second tab, it loads the state but never the component/template. I am wondering if anyone has any insights. Just to reiterate, the tabs and home components are loading fine in the below code.
I assume those issues have to do with ion-nav-view? Is there no solution at the moment that I can hack in?
I am trying to make a collection of code that will allow faster development by me for apps. I would have loved to use Ionic 2/Angular 2 and tried it out but it is of course not finished. I move back to Ionic 1 but really wanted the module like ability components give. Yes I could come up with something via directives but I would rather not.
After upgrading to 1.3 and refactoring to use Angular 1.5 components, I’ve found critical issues with the navbar. Navigation bar is displayed empty missing back button, title and custom buttons. With some workaround I’ve managed to make it work with simple pages introducing an intermediate template that acts as a shell hosting the top level component. But I cannot make it work with tabs.
Reading your last sentence makes me shiver. Could you please tell if there is any way to effectively use 1.5 components in Ionic 1.3 or do I have to rollback all the refactoring?
If you’ve upgraded to 1.3.1, I’m running into similar problems with the navbar and back buttons when dealing with tabs (and, probably relatedly, getting $ionicView.enter events triggered). I believe Ionic is already working on that problem here:
I’m not using Angular 1.5 though, so I’m not sure a downgrade to 1.3.0 will work for you like it does for me. But you might want to give it a try.