@guivic/metadata-module
v0.0.3
Published
Easy way to use metadata to share across components (using Vuex)
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-moduleUsage
// 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
yarnornpm install - Start development server using
yarn devornpm run dev
Author
Guillaume Galas from Guivic
📑 License
Copyright (c) Guivic
