Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angularjs 如何将cordova插件添加到类固醇应用程序_Angularjs_Cordova_Plugins_Steroids - Fatal编程技术网

Angularjs 如何将cordova插件添加到类固醇应用程序

Angularjs 如何将cordova插件添加到类固醇应用程序,angularjs,cordova,plugins,steroids,Angularjs,Cordova,Plugins,Steroids,我正在类固醇应用程序中使用插件。据介绍,我在iOS配置中添加了类固醇服务插件: [ {"source":"https://github.com/wymsee/cordova-HTTP.git"} ] 我还在config.xml中添加了它: <js-module src="www/cordovaHTTP.js" name="cordova-HTTP"> <clobbers target=&q

我正在类固醇应用程序中使用插件。据介绍,我在iOS配置中添加了类固醇服务插件:

[
  {"source":"https://github.com/wymsee/cordova-HTTP.git"}
]
我还在config.xml中添加了它:

<js-module src="www/cordovaHTTP.js" name="cordova-HTTP">
  <clobbers target="cordova-HTTP" />
</js-module>

但我仍然得到了注入角度模型缺失的提示。

  • 我是否需要将它链接到index.html,因为我知道手册上说
    完成这项工作

  • 我需要像插件的github中提到的那样安装插件吗 第页:

    cordova插件添加

  • 你能告诉我我应该一步一步地做些什么吗 工作


  • 有很多方法可以添加插件。有一个简单的方法:

  • 打开命令行
  • 路径/到/您的/项目/插件
  • cordova插件添加
  • 通过添加“cordovaHTTP”注入插件 示例:var app=angular.module('myApp',['ngRoute','ngAnimate','cordovaHTTP'])
  • 将其与关键字cordovaHTTP一起使用
  • 希望对你有帮助