vue-co
co support for vue components.
Last updated 2 years ago by zhangweis .
Apache-2.0 · Repository · Bugs · Original npm · Tarball
$ cnpm install vue-co 
SYNC missed versions from official npm registry.

vue-co

add co support for vue components.

Usage:

import vueCo from 'vue-co';
export default vueCo({
  methods: {
    methodx: function*(param1,param2) {
      var resolved = yield somePromise;
    }
  }
  asyncData: function*() {
    //do it in generator way
  }
  //any generator function will be transformed by co.wrap
})
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |