Display a map to select mondial relay
Installation
Bower
bower install ovh-angular-mondial-relay --save
NPM
npm install ovh-angular-mondial-relay --save
Howto's
Configuration
In your app.js
, inject the module
angular;
In your index.html
, inject scripts and styles
Translations
Translations are available in xml files in folder https://github.com/ovh-ux/ovh-angular-mondial-relay/blob/master/src/mondial-relay/translations
The more convinent is to convert these files in json and provide partial translation files via mondialRelayProvider
Requests to API
You need 2 services to request API:
SupplyMondialRelay
(https://api.ovh.com/1.0/supply/mondialRelay)User
(https://api.ovh.com/1.0/me) If not provided, these 2 services will be injected from OvhApiServices so be sure to either provide the services or include OvhApiServices as a dependency of your project (see: https://github.com/ovh-ux/ovh-api-services).
SupplyMondialRelay
angular;
where filter
is a json object containing:
- address {String} (optional): i.e. : "route de gorrekear"
- city {String} (optional if zipcode is specified): i.e. : "le folgoet"
- country {String} (mendatory): i.e. : "fr"
- zipcode {String} (optional if city is specified): i.e. : "29260"
where response
is a json like:
User
angular;
Get the sources
git clone https://github.com/ovh-ux/ovh-angular-mondial-relay.git cd ovh-angular-mondial-relay npm install bower install
You've developed a new cool feature ? Fixed an annoying bug ? We'd be happy to hear from you !
Have a look in CONTRIBUTING.md
If you use literal text, you must declare it as a translation, only in the french translation file https://github.com/ovh-ux/ovh-angular-mondial-relay/blob/master/src/mondial-relay/translations/Messages_fr_FR.xml
Run the tests
npm test
Build the documentation
grunt ngdocs
Related links
- Contribute: https://github.com/ovh-ux/ovh-angular-mondial-relay/blob/master/CONTRIBUTING.md
- Report bugs: https://github.com/ovh-ux/ovh-angular-mondial-relay/issues
- Get latest version: https://github.com/ovh-ux/ovh-angular-mondial-relay
License
See https://github.com/ovh/ovh-angular-mondial-relay/blob/master/LICENSE