faq-component
v0.0.6
Published
Simple FAQ component for VUE.JS made with Bootstrap
Downloads
11
Readme
Faq-component
Simple FAQ for VUE.JS made with Bootstrap
Dependencies
- Vue.js. Required.
- Bootstrap (CSS). Required.
Installation
Install with npm:
npm i faq-component
Database
table categories :
- id (integer PK)
- nom (varchar 255)
- nom_interne (varchar 255)
table faqs :
- id (ineger PK)
- categorie_id (integer FK categories)
- object (varcher 255)
- question (text)
- reponse (text)
Import globally in app.js:
import FaqComponent from 'faq-component';
Vue.component('faq-component', FaqComponent);
Usage
<faq-component :api_url="'your_api_url'"></faq-component>
Props
| Name | Type | Description | Default
| ----------------- | :--- | :--- | :--- |
| api_url
| String
| URL that calls data | |
Example
<faq :api_url="'http://your/api/url'"></faq>