Nu Skin Market Config - Vue
Installation
npm i --save @nuskin/ns-market-config-vue
yarn add @nuskin/ns-market-config-vue
Usage
Using this plugin makes a call to fetch the market-config from AEM. Upon success, it exposes the config to all components via the this.$marketConfig
property.
Vue
import Vue from 'vue';
import MarketConfigPlugin from '@nuskin/ns-market-config-vue';
Vue.use(MarketConfigPlugin);
Nuxt
// nuxt.config.js
export default {
...
modules: [
...,
'@nuskin/ns-market-config-vue/nuxt',
...
],
...
}