在我的项目中实现了ngCordova,此外,我还在我的应用程序中添加了ngCordovaOauth以生成使用facebook和twitter登录的内容--这就是问题的根源。安装保龄球后,ng-cordova-oauth收到以下错误:
Uncaught Error: [$injector:modulerr] Failed to instantiate module ionicApp due to:
Error: [$injector:modulerr] Failed to instantiate module ngCordova due to:
Error: [$injector:nomod] Module 'ngCordova' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.然后删除对ng-cordova-oauth的引用,问题仍然存在。现在我无法修复它,每次运行我的应用程序都是白色的,并抛出这个错误。
在我的index.html文件中是对ng-cordova.min.js文件的引用,这是我的角模块。
angular.module('SharedServices', ['ionic','ngCordova','ngMap','openfb'])发布于 2015-05-05 20:09:29
有效的检查文件,这是很好的。然后,bower install -SF ngCordova引用安装并运行的文件。
https://stackoverflow.com/questions/30060936
复制相似问题