我正在尝试在控制器加载之前解析一些数据.在开发代码上按预期工作,但是当我缩小它时,我的$httpget被替换为e或者可用的任何变量.
我不能注入$http中angular.module("app", []).config.所以我不知道如何解决这个问题.
angular.module("app", [
"app.controllers"
"app.directives"
"app.filters"
"app.services"
]).config ($stateProvider, $urlRouterProvider) ->
$stateProvider.state("tab",
url: "/tab"
abstract: true
templateUrl: "tpls/tabs.html"
)
.state("tab.programs",
url: "/programs"
abstract: true
resolve:
events: ($http) -> # $http get's replaced upon minification..
$http.get('my.example.site/events.json')
.then((data) ->
data.data
)
Run Code Online (Sandbox Code Playgroud) 我已经在config.xml中设置了启动画面,甚至手动将它们复制到了 platforms/android/res/drawable-RESOLUTIONS/splash.png
但是,使用命令行构建它会phonegap local build android --device显示没有启动画面.只有一个空白的白色屏幕大约一秒钟.
图标和启动画面不会在构建文件夹中被复制,这也很奇怪.我必须在那里手动复制它们.这是一个已知的错误?
文件夹结构:http://cl.ly/image/091v0D2o2s3O
我的config.xml:
<preference name="permissions" value="none"/>
<!-- Customize your app and platform with the preference element. -->
<!-- <preference name="phonegap-version" value="3.4.0" /> --> <!-- all: current version of PhoneGap -->
<preference name="orientation" value="default" /> <!-- all: default means both landscape and portrait are enabled -->
<preference name="target-device" value="universal" /> <!-- all: possible values handset, tablet, or universal -->
<preference name="fullscreen" value="true" /> <!-- all: hides the status bar …Run Code Online (Sandbox Code Playgroud) android ×1
angular-ui ×1
angularjs ×1
cordova ×1
ios ×1
javascript ×1
minify ×1
performance ×1