@nuxtjs/observable

0.0.1-alpha • Public • Published

@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

Readme

Keywords

none

Package Sidebar

Install

npm i @nuxtjs/observable

Weekly Downloads

3

Version

0.0.1-alpha

License

MIT

Unpacked Size

1.39 kB

Total Files

4

Last publish

Collaborators

  • clarkdo
  • pi0
  • atinux
  • alexchopin
  • danielroe
  • antfu