【发布时间】:2015-12-08 14:49:34
【问题描述】:
我已遵循this 指南,但在 Visual Studio 中运行波纹模拟器时无法使其工作。出现此错误:
我没有改变任何东西,只是按照指南。
编辑: 我的 app.js
// Ionic Starter App
// angular.module is a global place for creating, registering and retrieving Angular modules
// 'starter' is the name of this angular module example (also set in a <body> attribute in index.html)
// the 2nd parameter is an array of 'requires'
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();
}
});
})
【问题讨论】:
-
请发布您的 app.js
-
已添加。我没有改变它。
-
您的目标是哪个平台?
-
我刚刚启动了涟漪网络浏览器模拟器,iPhone和Android都存在同样的问题。
-
哪个科尔多瓦版本?
标签: cordova ionic-framework visual-studio-2015 ionic ripple