4

I'm using cordova-http plugin in a Steroids app. according to manual, I've added plugin in iOS config in steroids could service:

[
  {"source":"https://github.com/wymsee/cordova-HTTP.git"}
]

and also I've added it in config.xml:

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

but still I got the error telling me injected Angular model is missing.

  1. do I need to link it to index.html knowing that manual says <js-module> fulfills this job.

  2. do I need to install plugin like what's mentioned in plugin's github page:

    cordova plugin add https://github.com/wymsee/cordova-HTTP.git

  3. may you please tell me what should I do step by step to make it work?

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
Reyraa
  • 4,174
  • 2
  • 28
  • 54

1 Answers1

0

There are many ways to add plugins. There's an easy way:

  1. open your command line
  2. path/to/your/project/plugins
  3. cordova plugin add https://github.com/wymsee/cordova-HTTP.git
  4. Inject the plugins by adding 'cordovaHTTP' Example: var app = angular.module('myApp', ['ngRoute', 'ngAnimate', 'cordovaHTTP']);
  5. Use it with key word cordovaHTTP

Hopes it'll help you