vue-frisbee
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

vue-frisbee

A small wrapper for integrating Frisbee to Vuejs

How to install:

CommonJS:

$ yarn add frisbee vue-frisbee

And in your entry file:

import Vue from 'vue';
import frisbee from 'frisbee';
import VueFrisbee from 'vue-frisbee';
 
Vue.use(VueFrisbee, frisbee);

Script:

Just add 3 scripts in order: vue, frisbee and vue-frisbee to your document.

Usage:

This wrapper will bind frisbee to Vue or this if you're using single file component.

You can frisbee like this:

Vue.frisbee.get('/').then(res => {
  console.log(res.body);
});
 
this.frisbee.get('/').then(res => {
  console.log(res.body);
});
 
this.$http.get('/').then(res => {
  console.log(res.body);
});

/vue-frisbee/

    Package Sidebar

    Install

    npm i vue-frisbee

    Homepage

    wvvw.me/

    Weekly Downloads

    1

    Version

    1.1.1

    License

    MIT

    Unpacked Size

    5.32 kB

    Total Files

    7

    Last publish

    Collaborators

    • omgimalexis