Baasic version of the core-ajax Web Component providing support for application-wide authentication.
Install the component using Bower:
$ bower install baasic-ajax --save
Or download the source code and install it manually in your projects.
-
Import Web Components' polyfill:
<script src="bower_components/platform/platform.js"></script>
-
Import Custom Element:
<link rel="import" href="bower_components/baasic-ajax/baasic-ajax.html">
-
Start using it!
<baasic-ajax id="ajax" url="{{baseUrl}}/{{version}}/{{application}}/article/{{slug}}/" params='{"embed":"Authors,Tags"}' handleas="json" contenttype="application/json" response="{{response}}" on-core-error="{{onGetError}}"></baasic-ajax>
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
For detailed changelog, check Releases.