0.1.2 • Published 7 years ago
@leonardpauli/lp-vue-store v0.1.2
@leonardpauli/lp-vue-store
Simple global store using vue observables
Usage:
npm i @leonardpauli/lp-vue-storeimport Store from '@leonardpauli/lp-vue-store'- (see
./examplefor examples)
Try example:
git clone git@github.com:leonardpauli/lp-vue-store.gitcd lp-vue-storenpm run example- demo should now open in browser, see source for usage
- or view it at: https://lp-vue-store-example.now.sh
Demo includes:
- error handling
- loading state
- empty state
- lists
- modules/sub-modules
- actions (inc. async)
- computed
- module static data
- module props validation
- $store globally reachable (key changeable)
- works great with Vue, no fuzz, just nicely works
much thanks to vue's existing logic
Contribute
Feel free to fork and send PR's :)
Copyright © Leonard Pauli, 2018
Licence: ISC.