Vue.js Component providing PostgREST integration
See the official documentation
To get started, install vue-postgrest via your package manager:
yarn add vue-postgrest # OR npm install vue-postgrest
Import and install the Plugin in your main.js
:
import Vue from 'vue' import Postgrest from 'vue-postgrest' Vue.use(Postgrest)
You can use the <postgrest>
component:
<postgrest route="ROUTE" query={}> <template #default="{ items }"> {{ items }} </template> </postgrest>
Use the pg
mixin:
<template> <div>{{ pg.items }}</div> </template> <script> import { pg } from 'vue-postgrest' export default { mixins: [pg], computed: { pgConfig () { return { route: 'ROUTE', query: {} } } } } </script>
Or you can directly use the instance method provided on your Vue instance:
this.$postgrest.ROUTE.get()
We actively welcome your pull requests:
Thank you!
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4