mirror of
https://github.com/silkimen/cordova-plugin-advanced-http.git
synced 2024-10-07 01:32:12 +08:00
updated readme
This commit is contained in:
parent
19f9fc4028
commit
4a67a0d0f1
@ -25,7 +25,7 @@ This plugin creates a cordovaHTTP service inside of a cordovaHTTP module. You m
|
||||
|
||||
var app = angular.module('myApp', ['ngRoute', 'ngAnimate', 'cordovaHTTP']);
|
||||
|
||||
You can then inject the cordovaHTTP service into your controllers. The functions can then be used identically to the examples shown below except that instead of accepting success and failure callback functions, each function returns a promise. For more information on promises in AngularJS read the [AngularJS docs](http://docs.angularjs.org/api/ng/service/$q). For more info on promises in general check out this article on [html5rocks](http://www.html5rocks.com/en/tutorials/es6/promises/).
|
||||
You can then inject the cordovaHTTP service into your controllers. The functions can then be used identically to the examples shown below except that instead of accepting success and failure callback functions, each function returns a promise. For more information on promises in AngularJS read the [AngularJS docs](http://docs.angularjs.org/api/ng/service/$q). For more info on promises in general check out this article on [html5rocks](http://www.html5rocks.com/en/tutorials/es6/promises/). Make sure that you load cordova.js or phonegap.js after AngularJS is loaded.
|
||||
|
||||
### Not AngularJS
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user