I was trying to migrate my angular + phonegap app into ionic, and i’m kind of stuck on this.
My index.html of my old app looked like this
<div id="angular_main" class="container"> <ng-include src="'partials/_header.html'"></ng-include> <ng-view data-ng-controller="InitController"></ng-view> <ng-include src="'partials/_footer.html'"></ng-include> </div>
where InitController is doing a bunch of stuff (specially ajax calls, and database read/write)
And now i’m trying to use the nav-bar feature but it doesn’t wait for the InitController to finish and then render the view.
I tried it several ways with no success at all, one of them:
<nav-bar type="bar-positive" back-button-type="button-icon" back-button-icon="ion-ios7-arrow-back"></nav-bar> <nav-view data-ng-controller="InitController"></nav-view>
Thanks in advance.