vue-teddy-store
v0.5.3
Published
🧸 Next-gen simple store for Vue
Downloads
14
Readme
What is Vue Teddy Store?
Vue Teddy Store is the easiest - next-generation - store for Vue application. Check out the documentation to find more about its minimal & delightful API.
Example
<!-- start of .vue file -->
<script>
import { sync } from 'vue-teddy-store'
export default {
computed: {
products: sync('products', 'items'),
},
}
</script>
<!-- End of .vue file -->
<script>
/* part of your main.js file */
import Vue from 'vue'
import { setStore, install } from 'vue-teddy-store'
setStore('products', {
state: {
items: [
{
name: 'Berries',
},
],
},
})
Vue.use(install)
/* end part of your main.js file */
</script>
Contributing
Vue Teddy Store is and always will be free and open source.
Core Codebase Contributors
This project, so far, exists only because of the will of one person. If you use it and thinks it should become better, cover more cases or be more stable, consider pushing pull requests
as well as reaching out through issues
for ideas, bugs and questions.
License
Copyright (c) 2020-present, Gabin Desserprit