Promised Based Ajax Helper - With RoR in mind
npm i --save @djforth/ajax-es6-fp
To fetch data:
let Fetch = ;let get_data = ; //Returns Promiseget_data;
To Create data:
let Create = ;let post_data = ; //Returns Promise;
To Destroy/delete data:
let Destroy = ;let remove_data = ; //Returns Promise;
To Patch/update data:
let Patch = ;let update_data = ; //Returns Promise;
If you discover any bugs, feel free to create an issue on GitHub. Please add as much information as possible to help us fixing the possible bug. We also encourage you to help even more by forking and sending us a pull request.
If you'd like to contribute, ajax-es6-fp is written using babel in ES6.
Please make sure any additional code should be covered in tests (Jasmine using karma).
If you need to run the test please use:
or to rebuild the JS run:
npm run build
Adrian Stainforth (https://github.com/djforth)
ajax-es6-fp is an open source project falling under the MIT License. By using, distributing, or contributing to this project, you accept and agree that all code within the ajax-es6-fp project are licensed under MIT license.