使用ionic显示时,使ion-content包含的内容高度自动填充
将ion-content的滚动条去掉,,
设置内容样式,position:absolute;
<ion-content scroll="false">
<div ng-controller="myController">
<div id="content" style="position:absolute; width:100%;height:100%;"></div>
</ion-content>
ionic ion-tabs 嵌套使用(不能正确显示,需高手指教)
http://bbs.phonegap100.com/thread-2885-1-1.html
$ionicModal.fromTemplateUrl 不能显示模板内容
指定的模板在单独文件文件中,内容直接填写,不需要使用
<script id="modal.html" type="text/ng-template">
包含内容
ionic调试
ionic emulate Android -l -c -s
Error: Device communication timed out. Try unplugging & replugging the device.
About the timeout, its simple to solve.
1) Go to:
\platforms\android\cordova\node_modules\q
2) Locate:
var timeoutId = setTimeout(function () {
deferred.reject(new Error(message || “Timed out after ” + ms + ” ms”));
}, ms);
3) Change to:
var timeoutId = setTimeout(function () {
deferred.reject(new Error(message || “Timed out after ” + ms + ” ms”));
}, 10000000);
4) Run! You’ll see dependencies being installed. Thats why time was running out! #bug
5) After all, you can undo the changes.
Android模拟器启动黑屏,CPU占用高问题
- 环境变量ANDROID_SDK_HOME路径设置错误。
- 编辑模拟设备,选择 Use Host GPU
参考:
Ionic简单接触:Windows下Ionic Android开发环境搭建
Android 启动问题——黑屏 死机 解决方法
使用 Ionic 进行 Android 模拟