1.0.6 • Published 3 years ago

vue-contentful-api v1.0.6

Weekly downloads
10
License
ISC
Repository
github
Last release
3 years ago

vue-contentful-api

A small wrapper for integrating contentful to Vuejs

How to install:

npm install --save contentful vue-contentful-api

And in your entry file:

import * as Contentful from 'contentful'
import VueContentfulApi from 'vue-contentful-api'

let contentful = Contentful.createClient({
    space: 'SPACE-ID',
    accessToken: 'ACCESS-TOKEN',
})

Vue.use(VueContentfulApi, contentful)

Usage:

This wrapper bind contentful to Vue or this if you're using single file component.

You can use contentful like this:

Vue.contentful.getEntries().then((response) => {
  console.log(response)
})

this.contentful.getEntries().then((response) => {
  console.log(response)
})
1.0.6

3 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago