All Projects → posva → vue-recomputed

posva / vue-recomputed

Licence: MIT License
Recomputable computed properties

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to vue-recomputed

wxapp-computed
在微信小程序中使计算值(computed)
Stars: ✭ 20 (-4.76%)
Mutual labels:  computed
iltms teensy lightsaber v1
This is the code to accompany the lightsaber project at http://www.iliketomakestuff.com/make-lightsaber/ Expected hardware is listed in post (Teensy 3.2, Prop Shield, DotStar LEDs)
Stars: ✭ 28 (+33.33%)
Mutual labels:  prop

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 things:

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

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

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].