0.0.1-alpha • Published 5 years ago
@nuxtjs/observable v0.0.1-alpha
@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
0.0.1-alpha
5 years ago