0.1.3 • Published 7 years ago
mantis-data-store v0.1.3
Mantis Data Store for jQuery
A data store for jQuery
Initialize
Somewhere on your template:
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/mantis-data-store@0.1.3/lib/index.min.js"></script>
Get the instance
var myMantis = MantisDS();
Push new state into data store
myMantis.push('myName', 'hasan');
Get your state from data store
myMantis.get('myName');
Update your state on data store
myMantis.update('myName', 'juki')
Remove your state from data store
myMantis.remove('myName');