When I’m testing my app with ionic serve (–lab) it works perfectly but when use Ionic View, nothing show up. Only my footer.
I have the following routes:
.config(function ($stateProvider, $urlRouterProvider) {
$urlRouterProvider.otherwise('inicio');
$stateProvider.state('inicio', {
url: '/inicio',
templateUrl: '/views/home.html',
controller: 'InicioController'
}).state('hoteis', {
url: '/hoteis',
templateUrl: '/views/hoteis.html',
controller: 'HoteisController'
});
})
In my index.html I have:
<body ng-app="starter">
<ion-pane>
<ion-nav-bar class="bar bar-balanced">
<ion-nav-back-button></ion-nav-back-button>
</ion-nav-bar>
<ion-nav-view>
<ion-content></ion-content>
</ion-nav-view>
<ion-footer-bar class="bar-balanced">
<h6 class="title">Teste Litoral Verde Viagens</h6>
</ion-footer-bar>
</ion-pane>
</body>
And my views are this way:
<ion-view view-title="My Title">
<ion-content>
Content here
</ion-content>
</ion-view>