How to use the @vuex-orm/core.Model.axios function in @vuex-orm/core

To help you get started, we’ve selected a few @vuex-orm/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github vuex-orm / plugin-axios / test / feature / VuexORMAxios.spec.ts View on Github external
it('can register axios instance directly to the model', () => {
    VuexORM.use(VuexORMAxios)

    Model.setAxios(axios)

    expect(Model.axios).toBe(axios)
  })
github vuex-orm / plugin-axios / test / feature / VuexORMAxios.spec.ts View on Github external
it('registeres axios instance by passing to plugin install option', () => {
    VuexORM.use(VuexORMAxios, { axios })

    expect(Model.axios).toBe(axios)
  })

@vuex-orm/core

The Vuex plugin to enable Object-Relational Mapping access to the Vuex Store.

MIT
Latest version published 3 years ago

Package Health Score

56 / 100
Full package analysis