Reyraa
Reyraa

Reputation: 4274

how to add cordova plugin to steroids app

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?

Upvotes: 4

Views: 538

Answers (1)

BlueScreen
BlueScreen

Reputation: 1

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

Upvotes: 0

Related Questions