2016-02-17 40 views
0

我接手了AngularJS,Ionic和Cordova(插件)的項目。基於Ionic和AngularJS的模態對話框導致應用程序凍結

由於另一個問題,我不得不更新我的基礎設施(包括更新到7.2.1的XCode),它看起來像現在以下幾點:

NPM列表-g --depth = 0

├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
└── [email protected] 

NPM列表--depth = 0

├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] extraneous 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── grunt-conventional-[email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
└── [email protected] 
npm ERR! extraneous: [email protected] 

科爾多瓦平臺版本

Installed platforms: android 4.1.1, ios 4.0.1 
Available platforms: amazon-fireos, blackberry10, browser, firefoxos, osx, webos 

科爾多瓦插件列表

cc.fovea.cordova.purchase 4.0.0 "Purchase" 
cordova-plugin-console 1.0.2 "Console" 
cordova-plugin-crosswalk-webview 1.5.0 "Crosswalk WebView Engine" 
cordova-plugin-inappbrowser 1.2.1 "InAppBrowser" 
cordova-plugin-splashscreen 3.1.0 "Splashscreen" 
cordova-plugin-statusbar 2.1.2-dev "StatusBar" 
ionic-plugin-keyboard 1.0.8 "Keyboard" 

現在,當即跳進基於JavaScript的應用程序攤位和模態對話框不隱藏了一個「節能功能」。下面是一些示例代碼:

HTML

<div class="buttons"> 
 
    <a class="button button-icon icon ion-checkmark-circled" ng-click="save()"></a> 
 
</div>

的JavaScript

$scope.save = function() 
 
{ 
 
\t if ($scope.dosomething.length < 1) 
 
\t { 
 
\t $scope.$emit('toast', 'Do not do this!'); 
 
\t return; 
 
\t } 
 
}

任何想法如何解決這個問題?

回答

0

cordova-ionic 4.1.0-dev是「解決方案」。更多可以看到here

+0

不錯。我被告知這是一個聰明的社區。然而,這個問題以及我最近問到的其他一些問題沒有得到回答。但是,只要我走得更遠(我不是「應該」做imho)並回答我自己的問題以向社區提供增值服務,人們馬上就會立即讓我知道他們對我的期望是什麼更詳細... – Joey

相關問題