JSPM

vue-ticker

0.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q23494F
  • License MIT

Ticker plugin for Vue.js

Package Exports

  • vue-ticker

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vue-ticker) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

vue-ticker

Ticker plugin for Vue.js

Example

https://112ka.github.io/example/vue-ticker/

Install

<script src="/path/to/vue.js"></script>
<script src="/path/to/vue-ticker.umd.min.js"></script>

or

yarn add vue-ticker
or
npm install vue-ticker
import Vue from 'vue'
import VueTicker from 'vue-ticker'

Vue.use(VueTicker)

Usage

<script>

export default {
  mounted() {
    //set fps (default:30)
    this.$ticker.fps = 60

    //add to ticker
    this.$ticker.add(this.tickFunction)

    //remove from ticker
    this.$ticker.remove(this.tickFunction)

  },

  methods: {
    tickFunction() {
      this.count += 1;
    },
  }
}

Licensing

MIT