A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://vuex-orm.github.io/plugin-axios/guide/setup.html below:

Website Navigation


Setup | Vuex ORM Axios

# Setup

Vuex ORM Axios plugin can be installed with Vuex ORM using the VuexORM.use plugin install method.

An instance of axios must be configured during installation for the plugin to work.

You may also configure additional options during installation. See all available Configurations.

# Example

Here is an example that demonstrates a typical setup of Vuex ORM together with the plugin.

# Nuxt.js Integration

Configuring the plugin with Nuxt.js (opens new window) requires the Axios Module (opens new window) to be installed. The plugin also does not require an axios instance to be configured during plugin installation. Instead, you must register axios by creating a plugin.

First, leave axios option empty during plugin installation.

Next, create a plugin where you must configure the axios instance on models globally.

Finally, register the plugin you just created in your nuxt.config.js file.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4