vue-inline-data
v0.6.0
Published
Vue.js in your markup
Downloads
27
Readme
vue-inline-data - experimental
Demo: https://kabbouchi.github.io/vue-inline-data/
Install
<script src="https://unpkg.com/[email protected]" defer></script>
<script src="https://unpkg.com/vue-inline-data" defer></script>
Usage
Simple
<div vi-data="{ open: false }">
<button @click="open = true">Open Dropdown</button>
<ul v-show="open" @click="open = false">
Dropdown Body
</ul>
</div>
Nested - Components
<div vi-data>
<div vi-data="{ message : 'my-message'}">{{ message }}</div>
<div vi-data="{ count : 10}" vi-name="ComponentNameCounter">{{ count }}</div>
</div>
Component Props
<div vi-data="{ count : 10}">
<div vi-data vi-props="['value']" :value="count">
{{ value }}
</div>
</div>