Skip to content
views

DruxtViewsNuxtModule

View source on GitHub

DruxtViewsNuxtModule(moduleOptions)

The Nuxt.js module function.

  • Adds the Vue.js components to the Nuxt application.

The module function should not be used directly, but rather installed via your Nuxt configuration file.

Options are set on the root level druxt Nuxt config object.

Kind: global function

ParamTypeDescription
moduleOptionsobjectNuxt module options object.

Example

// `nuxt.config.js`
module.exports = {
  modules: [
    'druxt-views'
  ],
  druxt: {
    baseUrl: 'https://demo-api.druxtjs.org'
  }
}