我正在使用离子,我有一个with,并且我正在使用我的观点之间导航。
这是我的app.js:
var app = angular.module('myApp', ['ionic', 'ui.router']);
app.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();
}
});
})
app.config(function($stateProvider, $urlRouterProvider, $httpProvider) {
// Sign in - Initial display
$stateProvider.state('sign_in', {
url: '/signIn',
templateUrl: 'html/signIn.html',
controller: 'signInController'
})
.state('sign_up', {
url: '/signUp',
templateUrl: 'html/signUp.html',
controller: 'signUpController'
});
$urlRouterProvider.otherwise('/signIn');
});
我的默认视图是' / signIn'。当我导航到' / signUp'一切都好。但是,当我使用后退按钮返回' / signIn' ' / signIn'的内容视图出现一个milisec然后消失,我得到空白页。
一些结论:
请帮助我,我真的迷失了这件事...... 顺便说一下,这是死亡的白色屏幕'?