Open the side menu and select “Decepticons”. The title of that view is supposed to be “Decepticons”, but the first time you go there, it is blank. Switching back to the view later shows the title correctly; just seems to be a problem the first time the view is shown.
Could this possibly be due to the title being set via a “view-title” attribute and not using beta14’s new <ion-nav-title>?
I am using a promise to load the data in the $ionicView.beforeEnter handler, so I guess there could be a timing issue where Ionic locks the title before the data can be loaded. Strange that it only happens on first load.
I’ll try a $scope.$apply() to see if that does the trick.
As @mhartington suggested, I think this is a problem with the data loading too, but not with how I’m loading the data. Instead, my guess is that this is a timing issue in how Ionic is setting the scope variable watchers for the template, and the data is getting loaded too fast for Ionic to handle the change.
Turns out I was wrong. Turns out the problem was with the definition of scope variables. I was using “$ionicView.loaded” to initialize my scope variables, but ran into a timing issue with Ionic where the watchers on the scope variables were being set before “$ionicView.loaded” was being called when the view was first loaded, which caused Ionic to skip over the variable that sets the title.
For those that may run into the same problem, the solution is to just declare your scope variables on controller initialization, outside of “$ionicView.loaded”, like: