ITrust / angular-xmlrpc

An AngularJS service which provides XML-RPC communication methods.
Apache License 2.0
11 stars 13 forks source link

How to add dependency #1

Closed robert2206 closed 9 years ago

robert2206 commented 9 years ago

I had put dependendy but not works. How to add the dependency on my ionic projects?

jchakra commented 9 years ago

Hello robert2206 !

Actually, this project is not compatible with bower. Did you try to add manually the 2 files (services_xmlrpc_converter.js and services_xmlrpc.js) in your index.html (located within the www/ directory by default) after copying files in an "www/externals" (for instance) directory ?

index.html :

....
<script src="lib/ionic/js/ionic.bundle.js"></script>

<script src="cordova.js"></script>

<script src="externals/services_xmlrpc_converter.js"></script>
<script src="externals/services_xmlrpc.js"></script>
....

Regards

jchakra commented 9 years ago

Hello robert2206,

A new version has been put on the repository. A single file regroups now all the plugin code, and the angular module name changes to "xml-rpc". The project has been submitted as a bower module too !

Make sure you import the js file and create a dependency in your angular application :

angular.module('MyApp', ['xml-rpc']);

Regards

robert2206 commented 9 years ago

Thanks so much jchakra, I'm adding on my project now