Trying to start a new app via the blank template.
Added two routes:
.config(function($stateProvider, $urlRouterProvider) {
$urlRouterProvider.otherwise('/home');
$stateProvider
.state('home',
{
url: '/home',
templateUrl: 'templates/home.html',
onEnter: function() { console.log('entering home...') }
})
.state('create',
{
url: '/create',
templateUrl: 'templates/create.html',
onEnter: function() { console.log('entering create...') }
});
})
And copying from the ion-nav-bar docs, I changed the body contents of index.html to this:
<ion-nav-bar></ion-nav-bar>
<ion-nav-view animation="slide-left-right">
</ion-nav-view>
I can see that I am entering routes via the console.log statements, and I can see the content changing, but I have no nav bar at all. And the content is rendering at the very top left corner, both in a browser and in the emulator. The nav bar seems to be picking up a style attribute of “invisible” from somewhere. I am not applying ANY user styles at all. It is literally a fresh copy of the blank seed, save for the added routes. Especially weird in the emulator, since it’s rendering OVER the status bar. Here’s a screenshot:
So yeah. I’ve done BIG projects before in ionic and I can’t for the life of me figure out what’s wrong here.
Help?