@nuskin/ns-market-config-vue

A Vue plugin which fetches the Nu Skin market-configuration and exposes it to components via $marketConfig

Usage no npm install needed!

<script type="module">
  import nuskinNsMarketConfigVue from 'https://cdn.skypack.dev/@nuskin/ns-market-config-vue';
</script>

README

npm (scoped)

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',
    ...
  ],
  ...
}