Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/s-kainet/vue-pnpjs
Vue.js and PnP.js integration plugin
https://github.com/s-kainet/vue-pnpjs
Last synced: about 10 hours ago
JSON representation
Vue.js and PnP.js integration plugin
- Host: GitHub
- URL: https://github.com/s-kainet/vue-pnpjs
- Owner: s-KaiNet
- Created: 2019-02-13T16:15:06.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-14T10:00:11.000Z (almost 6 years ago)
- Last Synced: 2024-04-26T20:21:54.901Z (7 months ago)
- Language: TypeScript
- Size: 7.81 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vue.js and PnP.js integration plugin
## How to use
1. Install the plugin:
```bash
npm install vue-pnpjs
```
2. Initialize it in your main file:
```typescript
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:
```typescript
this.$pnp.sp.web.get().then(...)
```