0.2.2 • Published 5 years ago

vue-axios-client v0.2.2

Weekly downloads
8
License
MIT
Repository
github
Last release
5 years ago

vue-axios-client

Installation

npm install vue-axios-client
# or
yarn add vue-axios-client

Usage

Install the plugin to use it

import Vue from 'vue'
import axios from 'axios'
import VueAxiosClient, { AxiosRequest } from 'vue-axios-client'

const vueAxiosClient = new VueAxiosClient({ axios })

Vue.use(vueAxiosClient)
Vue.component('AxiosRequest', AxiosRequest)

API Reference

AxiosRequest component

Props

NameDescriptionType
axiosAxios instanceFunction See details
configAxios request configObject See details
lazyLazy request. If true use request in scoped slot. Defaults to falseBoolean
pendingDelayDelay in ms to wait before displaying the isLoading in default slot. Defaults to 200Number, String
tagString HTML tag name (default: div); if falsy (for example null or undefined),String
the component will be renderless (the content won't be wrapped in a tag),
in this case, only the first child will be rendered
transformDataFunction to transform the result data, useful for picking a specific part of the response.Function
Example: :transformData="data => data.user.messages"

Scoped slot

...

Events

...

License

MIT

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago