Baasic Web Component providing support for CRUD (Create-Read-Update-Delete)operations on REST endpoints.
Install the component using Bower:
$ bower install baasic-crud --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-crud/baasic-crud.html">
-
Start using it!
<baasic-crud id="crudElement" geturl="{{baseUrl}}/{{version}}/{{application}}/article/{{slug}}/" posturl="{{baseUrl}}/{{version}}/{{application}}/article/" puturl="{{baseUrl}}/{{version}}/{{application}}/article/{{slug}}/" deleteurl="{{baseUrl}}/{{version}}/{{application}}/article/{{slug}}/" on-get-completed="{{handleCrudCompleted}}" on-get-error="{{handleCrudError}}"></baasic-crud>
- 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.