@nuxtjs/observable
Vue.observable() state module for Nuxt.js
Last updated a year ago by atinux .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @nuxtjs/observable 
SYNC missed versions from official npm registry.

@nuxtjs/observable

Setup

npm i @nuxtjs/observable --save

Usage

In nuxt.config.js:

export default {
  modules: [
    '@nuxtjs/observable'
  ]
}

Add state to <srcDir>/state.js:

export default () => ({
  foobar: 123
})

Access and modify directly (no commits, no dispatches) $state available in ctx or this.

Credits

Nuxt.js Team

Current Tags

  • 0.0.1-alpha                                ...           alpha (a year ago)
  • 0.0.1-alpha                                ...           latest (a year ago)

1 Versions

  • 0.0.1-alpha                                ...           a year ago
Downloads
Today 0
This Week 0
This Month 16
Last Day 0
Last Week 2
Last Month 21
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |