I’m writing a simple page with a nav bar and a h1 element inside to display a title. somehow the ion-nav-bar gets automatically hidden when I do a ionic serve, and I’m not exactly sure why. I’m seeing this in both Chrome and Safari, and I’m running 1.0.0 -beta.8 as shown in my bower.json
Does anyone have a clue why this might be happening? Code is attached:
home.html
<ion-nav-bar class="bar-balanced">
<h1 class="title">Elite Schedule</h1>
</ion-nav-bar>
<ion-tabs class="tabs-energized tabs-icon-top">
<ion-tab title="Leagues" icon="ion-home" href="#/home/leagues">
<ion-nav-view name="tab-leagues"></ion-nav-view>
</ion-tab>
<ion-tab title="My Teams" icon="ion-star" ui-sref="home.myteams">
<ion-nav-view name="tab-myteams"></ion-nav-view>
</ion-tab>
</ion-tabs>
app.js
angular.module('eliteApp', ['ionic'])
.run(function($ionicPlatform) {
$ionicPlatform.ready(function() {
if(window.cordova && window.cordova.plugins.Keyboard) {
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
}
if(window.StatusBar) {
StatusBar.styleDefault();
}
});
})
.config(function($stateProvider, $urlRouterProvider) {
$stateProvider
.state('home', {
url: "/home",
templateUrl: "app/home/home.html"
});
$urlRouterProvider.otherwise('/home');
});
index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
<title></title>
<link href="lib/ionic/css/ionic.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<!-- IF using Sass (run gulp sass first), then uncomment below and remove the CSS includes above
<link href="css/ionic.app.css" rel="stylesheet">
-->
<!-- ionic/angularjs js -->
<script src="lib/ionic/js/ionic.bundle.js"></script>
<!-- cordova script (this will be a 404 during development) -->
<script src="cordova.js"></script>
<!-- your app's js -->
<script src="app/app.js"></script>
<script src="js/controllers.js"></script>
</head>
<body ng-app="eliteApp">
<ion-nav-view></ion-nav-view>
</body>
</html>
Screenshot:
Thanks in advance!