Skip to content

s-KaiNet/vue-pnpjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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(...)

About

Vue.js and PnP.js integration plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published