# vuex-declaration

> Declare state like props, make state inject to vuex dynamically when component created.

Latest version **0.0.1-fixed** (published 2019-12-16) · ISC license · 0 weekly downloads

## Install

```sh
npm install vuex-declaration
pnpm add vuex-declaration
yarn add vuex-declaration
bun add vuex-declaration
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1-fixed |
| Published | 2019-12-16 |
| First published | 2019-01-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 308.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | kbdsbx |

## Links

- npm: https://www.npmjs.com/package/vuex-declaration
- npm.io page: https://npm.io/package/vuex-declaration

## Recent versions

- 0.0.1-fixed (latest) — 2019-12-16
- 0.1.2 — 2019-12-13
- 0.1.1 — 2019-11-06
- 0.1.0 — 2019-03-28
- 0.0.1 — 2019-01-15

## README

# Vuex Declaration

Declare state like props, make state inject to vuex dynamically when component created.

## Usage

```bush
npm i vuex-declaration
```

```js
import vuecDeclaration from 'vuex-declaration'
import Vue from 'vue'
Vue.use( vuexDeclaration );
```

```js
Vue.component( 'self-component', {
    data () { ... },
    props : [ ... ],
    created () { ... },

    state : [ 'state-a', 'state-b' ],
} )
```

```js
export default {
    state : {
        'state-a' : {
            module : 'module-a',
        }
    }
}
```

---
_Source: https://npm.io/package/vuex-declaration · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
