@nuskin/ns market config vue

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

Version: 2.0.0 Updated: 05/01/2020

By: nuskin-cws License: ISC

Downloads Last 30 Days: 875

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',
    ...
  ],
  ...
}
Categories: Vue js
Tags: