白屏实现ngCordova

white screen to implement ngCordova

如果在我的项目中实现了 ngCordova,此外,我添加了 ngCordovaOauth 以在我的应用程序中使用 facebook 和 twitter 生成登录,这就是问题所在。安装 bower 然后 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 模块

angular.module('SharedServices', ['ionic','ngCordova','ngMap','openfb'])

有效检查文件,没问题。 运行, bower install -SF ngCordova 然后引用安装的文件和 运行.