Vue-gaspard
DOM helpers plugin for Vue.js
Getting started
Installing
npm | yarn | bower | unpkg |
---|---|---|---|
npm install vue-gaspard | yarn add vue-gaspard | bower install vue-gaspard | vue-gaspard.umd.js |
Usage
In main.js:
Vue
In any of your components:
{ // Use gaspard global Vue$gaspard // Or on this component instance this$g }
Or use gaspard within a <script>
Hello world !
Options
You can optionally pass in some options:
Name | Type | Default | Description |
---|---|---|---|
globalNamespace | String | $gaspard | Global access name |
instanceNamespace | String | $g | Instance access name |
Override defaults example:
Vue
API
Contribute
# Install dependencies cd vue-gaspardnpm install # Build main library npm run build # Run demo npm run dev
Licensing
MIT License Copyright (c) 2017 Luca Perret