- 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(...)
s-KaiNet/vue-pnpjs
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Vue.js and PnP.js integration plugin
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published