Press "Enter" to skip to content

Vue.js Component for Creating Polls, Voting, and Showing Results

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

AttributeDescriptionAccepted valuesHTTP verbRequiredDefault
savePollUrlThis is the endpoint where your server will save the current pollURL (string)POSTrequired

PollView.vue

AttributeDescriptionAccepted valuesHTTP verbRequiredDefault
saveVoteUrlThis is the endpoint where your server will save the vote for the current pollURL (string)POSTrequired
getPollUrlThis is the endpoint from where your server will return the pollURL (string)GETrequired

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.

Be First to Comment

    Leave a Reply

    Your email address will not be published.