vue-pnpjs
v0.0.3
Published
Provides integration between Vue.js and PnP.js
Downloads
14
Readme
Vue.js and PnP.js integration plugin
How to use
- Install the plugin:
npm install vue-pnpjs
- Initialize it in your main file:
import Vue from 'vue'; import VuePnP from 'vue-pnpjs'; import { sp } from '@pnp/sp'; import { graph } from '@pnp/graph'; import { setup } from '@pnp/common'; setup({...}) Vue.use(VuePnP, { sp: sp, graph: graph });
- Use it in your Vue instances:
this.$pnp.sp.web.get().then(...)