@guivic/metadata-module
v0.0.3
Published
Easy way to use metadata to share across components (using Vuex)
Downloads
1
Readme
📦 Metadata Module
Easy metadata service system integration with Nuxt.js and Vuex
✅ Features
✓ Exposes set
function to easily share metadatas across all components (sharing a color for a theme for expose)
✓ Exposes get
function so you can bind reactivity based on a metadata update
Installation
npm install @guivic/metadata-module --save
yarn add @guivic/metadata-module
Usage
// nuxt.config.js
/*
** Nuxt.js modules
*/
modules: [
'@guivic/metadata-module',
]
// component.vue
$metadata.set({
key: 'value'
});
$metadata.get()
// { key: 'value' }
Development
- Clone this repository
- Install dependencies using
yarn
ornpm install
- Start development server using
yarn dev
ornpm run dev
Author
Guillaume Galas from Guivic
📑 License
Copyright (c) Guivic