# Installation
vue-chimera is available on npm
# Using npm/yarn
$ npm install --save vue-chimera
# or
$ yarn add vue-chimera
Then install plugin into Vue:
import Vue from 'vue'
import VueChimera from "vue-chimera"
Vue.use(VueChimera, {
// Chimera default options
})
# Using Nuxt.js
Simply after adding installing vue-chimera
package, add vue-chimera/nuxt
to modules in nuxt.config.js
// nuxt.config.js
module.exports = {
modules: [
'vue-chimera/nuxt'
],
chimera: {
axios: axios.create(),
// Integrate with @nuxt/axios
axios () {
return this.$axios
}
}
}
If your using @nuxt/axios look sample above.
# Using Script tag (CDN)
<script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.19.2/axios.min.js"></script>
<script src="https://unpkg.com/vue-chimera@latest/dist/vue-chimera.min.js"></script>
<script>
Vue.use(VueChimera)
</script>
If you use old browser style and Vue
is publicly exposed as global variable
just add dist/vue-chimera.min.js
script tag to your HTML file and everything would be fine to go on.