Ionic framework 简单错误-检查其他帖子-未定义ngCordova
我正面临着这个错误Ionic framework 简单错误-检查其他帖子-未定义ngCordova,ionic-framework,ngcordova,hybrid,Ionic Framework,Ngcordova,Hybrid,我正面临着这个错误 [$injector:modulerr] Failed to instantiate module starter due to: Error: [$injector:modulerr] Failed to instantiate module ngCordova due to: 现在我知道这与索引html有关,因为它无法以某种方式引用ngcordova服务 index.html <script src="https://ajax.googleapis.com/aja
[$injector:modulerr] Failed to instantiate module starter due to:
Error: [$injector:modulerr] Failed to instantiate module ngCordova due to:
现在我知道这与索引html有关,因为它无法以某种方式引用ngcordova服务
index.html
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.3/angular-messages.js"></script>
<script src="lib/ionic-material/dist/ionic.material.min.js"></script>
<script src="lib/chart.js/dist/Chart.min.js"></script>
<!-- cordova script (this will be a 404 during development) -->
<script type="lib/ngCordova/dist/ng-cordova.min.js"></script>
<script src="cordova.js"></script>
<script type="lib/ng-cordova-oauth/dist/ng-cordova-oauth.js"></script>
<!-- your app's js -->
<script src="js/app.js"></script>
编辑:键入->src 而不是
<script type="lib/ngCordova/dist/ng-cordova.js"></script>
<script type="lib/ng-cordova-oauth/dist/ng-cordova-oauth.js"></script>
编辑:键入->src 而不是
<script type="lib/ngCordova/dist/ng-cordova.js"></script>
<script type="lib/ng-cordova-oauth/dist/ng-cordova-oauth.js"></script>
你是用Bower安装的吗?最初我用normal,然后用bowercheck拼写一次。你是用Bower安装的吗?最初我用normal,然后用bowercheck拼写一次。
<script src="lib/ngCordova/dist/ng-cordova.js"></script>
<script src="lib/ng-cordova-oauth/dist/ng-cordova-oauth.js"></script>
angular.module('myApp', ['ngCordova'])