vue-easy-polls is a component of Vue.js for creating polls, voting, and showing results. It is easy to implement and easy to customize.
vue js voting, vue polling, vue refresh data interval
How to make use of it:
Install
$ npm i @updivision/vue-easy-polls
Usage
<template> <div id="app"> <poll-creator savePollUrl="post-poll-url" /> <hr> <poll-view getPollUrl="get-poll-url" saveVoteUrl="post-save-url"/> </div> </template>
<script> import {PollView, PollCreator} from '@updivision/vue-easy-polls' export default { name: 'app', components: { PollCreator, PollView } } </script>
Poll Attributes
PollCreate.vue
Attribute | Description | Accepted values | HTTP verb | Required | Default |
---|---|---|---|---|---|
savePollUrl | This is the endpoint where your server will save the current poll | URL (string) | POST | required | – |
PollView.vue
Attribute | Description | Accepted values | HTTP verb | Required | Default |
---|---|---|---|---|---|
saveVoteUrl | This is the endpoint where your server will save the vote for the current poll | URL (string) | POST | required | – |
getPollUrl | This is the endpoint from where your server will return the poll | URL (string) | GET | required | – |
create polls and voting in vue js, vue-easy-polls Plugin/Github
See Demo And Download
Official Website(updivision): Click Here
This superior jQuery/javascript plugin is developed by updivision. For extra advanced usage, please go to the official website.