Skip to content

leonardpauli/lp-vue-store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@leonardpauli/lp-vue-store

Simple global store using vue observables

Usage:

  • npm i @leonardpauli/lp-vue-store
  • import Store from '@leonardpauli/lp-vue-store'
  • (see ./example for examples)

Try example:

  • git clone git@github.com:leonardpauli/lp-vue-store.git
  • cd lp-vue-store
  • npm 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.

About

Simple global store using vue observables

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published