Skip to content
Vue.js and PnP.js integration plugin
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
src
types
.gitignore
.npmignore
README.md
package-lock.json
package.json
tsconfig.json
tslint.json

README.md

Vue.js and PnP.js integration plugin

How to use

  1. Install the plugin:
       npm install vue-pnpjs
  2. 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
       });
  3. Use it in your Vue instances:
      this.$pnp.sp.web.get().then(...)
You can’t perform that action at this time.