To start using component you need simply register it. Loader will inject in to axios interceptors and will show up while response is not received. Press "Create request" button to call 'httpstat.us' with axios.
import axios from "axios" import CripVueLoading from "crip-vue-loading" Vue.use(CripVueLoading, { axios }) Vue.extend({ methods: { async request() { try { await axios.get("https://httpstat.us/200?sleep=1000") } catch (error) { console.error(error) } }, }, })