v-props
v1.0.6
Published
Vue directive for inheriting all defined props from parent component.
Downloads
2
Readme
v-props
Vue directive for inheriting all defined props from parent component.
Install
$ npm install v-props --save
Usage
Based on webpack
import vProps from 'v-props';
Vue.use(vProps)
<parent-component>
<child-component v-props></child-component>
<child-component v-props.once></child-component>
<child-component v-props.sync></child-component>
</parent-component>
Normal script
<script src="vue.js"></script>
<script src="v-props/index.js"></script>
License
MIT