Я начинаю с ионного каркаса. У меня есть некоторые проблемы, я думаю, что я уже сделал все, что нужно хорошо гостиница app.jsion nav view not rendering template
angular.module('starter', ['ionic']) .run(function ($ionicPlatform) { $ionicPlatform.ready(function() { if (window.cordova && window.cordova.plugins.Keyboard) { // Hide the accessory bar by default (remove this to show the accessory bar above the keyboard // for form inputs) cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true); // Don't remove this line unless you know what you are doing. It stops the viewport // from snapping when text inputs are focused. Ionic handles this internally for // a much nicer keyboard experience. cordova.plugins.Keyboard.disableScroll(true); } if (window.StatusBar) { StatusBar.styleDefault(); } }); }) .config(function ($stateProvider, $urlRouterProvider) { $stateProvider.state('home', { url: '/home', templateUrl: 'views/home.html' }).state('about', { url: '/about', templateUrl: 'views/about.html' }); $urlRouterProvider.otherwise("/home.html"); });
в index.xhtml
<body ng-app="starter">
<!--<ion-nav-bar class="bar-positive"></ion-nav-bar>-->
<ion-nav-bar class="bar-positive">
<ion-nav-back-button>
</ion-nav-back-button>
</ion-nav-bar>
<ion-nav-view></ion-nav-view>
в home.html
<ion-view view-title="home">
<ion-content>
<p>
<a ui-sref="about">About</a>
</p>
</ion-content></ion-view>
, когда я смотрю на firebug, я вижу ответ, но ионный навигатор не отображает ионный вид, определенный на домашней странице