摘要: 有时候需要 调试,这是就需要alert 的...可惜的是我不会angular 所以记录一下.controller('mainctr', function($scope, $window) { $window.alert('xxxxx');})只需要 $window 就可以了;跳转页面的时候,$st... 阅读全文
posted @ 2014-09-19 18:19 ทดสอบ 阅读(739) 评论(0) 推荐(0)
摘要: 要用cordova plugin 的话还是需要设置一下的1. 下载 ng-cordova.jsdownload the zip file here2. 在index.html 中引用 (cordova.js 之前引进)如下: 3.在你的angular.module 声明 如下angul... 阅读全文
posted @ 2014-09-19 14:39 ทดสอบ 阅读(1070) 评论(0) 推荐(0)
摘要: 中英文转换,经常用到;而ionic 则是通过angular js 来实现;用到了http://www.ng-newsletter.com/posts/angular-translate.html 中的angular-translate.min.js 让translate language 变得很简单... 阅读全文
posted @ 2014-09-19 10:33 ทดสอบ 阅读(419) 评论(0) 推荐(0)