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-tickerimport 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