vue-array-controller

1.1.0 • Public • Published

vue-array-controller

a vue array controller

Usage

import Vue from 'vue'
import vueArrayController from 'vue-array-controller'

const ArrayController = Vue.component('array-controller', vueArrayController)

const arrayController = new ArrayController({
  propsData: {
    value: ['hello']
  }
})

arrayController.$on('change', value => arrayController.value = value)

arrayController.append('world')

console.log(arrayController.value) // ['hello', 'world']

Readme

Keywords

Package Sidebar

Install

npm i vue-array-controller

Weekly Downloads

1

Version

1.1.0

License

ISC

Unpacked Size

40.9 kB

Total Files

8

Last publish

Collaborators

  • zhongxingdou