I’ve got an app based on the tabs example. The view corresponding to one of the tabs does not show when the tab is clicked and the issue is only occurring on devices (the app works properly in browsers). I’ll paste relevant parts of the app so hopefully someone can lead me in the right direction.
Snippet from app.js
.state('tab.fixture', {
url: '/fixture',
views: {
'tab-fixture': {
templateUrl: 'templates/tab-fixture.html',
controller: 'FixtureCtrl'
}
}
})
Snippet from tabs.html
<ion-tab title="Fixture" icon-off="exa-field-outline" icon-on="exa-field" href="#/tab/fixture">
<ion-nav-view name="tab-fixture"></ion-nav-view>
</ion-tab>
Snippet from controllers.js
.controller('FixtureCtrl', function($scope, Fixture) {
$scope.$on('$ionicView.enter', function() {
Fixture.query({torneoId: 1}, function(fixture) {
console.log('fixture downloaded')
$scope.fixture = fixture;
});
});
$scope.moment = moment;
})