0.3.2 • Published 7 years ago

vueo v0.3.2

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

Vueo

Build Status npm

🍟 Easy to get value from vue instance via object paths.

Documentation

https://qingwei-li.github.io/vueo

Installation

npm i vueo -S

Usage

import Vue from 'vue'
import Vueo from 'vueo'

Vue.use(Vueo)

new Vue({
  data () {
    return { a: { b: [ {c: 1} ] } }
  },

  created () {
    this.$has('a.b.0') // true
    this.$has('a.b.1') // false
    this.$at('a.b.0.c') // 1
    this.$at('a.b.1.c') // undefined
  }
})

Read more

License

MIT

0.3.2

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago