0.0.1 • Published 6 years ago

vue-recomputed v0.0.1

Weekly downloads
116
License
MIT
Repository
github
Last release
6 years ago

VueRecomputed Build Status npm package coverage thanks

Recomputable computed properties in Vue

⚠️ You probably don't need this, please, first check this issue and this comment and this other one as well

Installation

npm install vue-recomputed

Usage

This is a silly example to showcase the API. Never do this kind of thigs:

export default {
  recomputed: {
    currentTime() {
      // you have access to the component as with computed properties
      return Date.now()
    },
  },

  methods: {
    updateTime() {
      this.$recompute('currentTime')
    },
  },
}

License

MIT