# Model
Vuex ORM Axios adds supporting properties and methods to the Model object.
# Static Properties
# axios
Type:
AxiosInstance | nullThe axios instance which was either set during plugin installation or set using the
setAxiosmethod. Vuex ORM Axios will use this axios instance to perform requests.
# apiConfig
Type:
ObjectDefault:
{}The property that holds the model configuration for requests.
# globalApiConfig
Type:
ObjectThe property that holds the global configuration. The value will be set automatically during the plugin installation process.
WARNING
Do not mutate this property programmatically.
# Static Methods
# api
api(): RequestReturn a newly created Request instance.
# setAxios
setAxios(axios: AxiosInstance): voidSet the axios instance manually. Typical setups will configure the axios instance during installation. However, in some cases (mostly with Nuxt), you may need to set the axios instance at a later stage.
IMPORTANT
If you omit the axios instance during installation, it's important that one is set using
setAxiosbefore any attempt to make an API request.See also: Nuxt.js Integration
Request →